/**
 * Society Registration and Membership Management System
 * Core UI Stylesheet
 */

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #172554;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 260px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.navbar-custom .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.25rem;
}
.navbar-custom .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    transition: all 0.2s ease;
}
.navbar-custom .nav-link:hover {
    color: #fcd34d !important;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(37, 99, 235, 0.88) 100%), url('https://images.unsplash.com/photo-1577495508048-b635879837f1?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: white;
    padding: 90px 0 100px;
    position: relative;
}
.hero-banner h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Glass & Card Components */
.card-custom {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-custom:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.plan-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.plan-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.02);
}
.plan-card .price {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Stat Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.stat-card.stat-success { border-left-color: var(--success-color); }
.stat-card.stat-warning { border-left-color: var(--warning-color); }
.stat-card.stat-danger { border-left-color: var(--danger-color); }
.stat-card.stat-info { border-left-color: var(--info-color); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.dashboard-sidebar .sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 700;
}
.dashboard-sidebar .nav-link {
    color: #cbd5e1;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-left-color: var(--accent-color);
}
.dashboard-content {
    flex-grow: 1;
    padding: 28px;
    overflow-y: auto;
    background-color: #f1f5f9;
}

/* Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-status.approved, .badge-status.active, .badge-status.completed {
    background-color: #dcfce7;
    color: #166534;
}
.badge-status.pending, .badge-status.created {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-status.rejected, .badge-status.failed {
    background-color: #fee2e2;
    color: #991b1b;
}
.badge-status.suspended {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Footer */
footer {
    margin-top: auto;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
}
footer a {
    color: #cbd5e1;
    text-decoration: none;
}
footer a:hover {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        z-index: 1045;
    }
    .dashboard-sidebar.show {
        left: 0;
    }
    .dashboard-content {
        padding: 16px;
    }
}
