        :root {
            /* Corporate Professional Color Palette */
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --primary-light: #3b82f6;
            --primary-50: #eff6ff;
            --primary-100: #dbeafe;
            --secondary: #64748b;
            --secondary-dark: #475569;
            --accent: #0ea5e9;
            --success: #059669;
            --success-light: #10b981;
            --warning: #d97706;
            --warning-light: #f59e0b;
            --danger: #dc2626;
            --danger-light: #ef4444;
            --info: #0284c7;
            
            /* Neutral Colors */
            --dark: #0f172a;
            --dark-light: #1e293b;
            --dark-lighter: #334155;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-500: #64748b;
            --gray-600: #475569;
            --gray-700: #334155;
            --gray-800: #1e293b;
            --gray-900: #0f172a;
            
            /* Backgrounds */
            --bg: #f8fafc;
            --bg-card: #ffffff;
            --bg-hover: #f1f5f9;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --border-dark: #cbd5e1;
            
            /* Shadows - Professional & Subtle */
            --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --shadow-2xl: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
            
            /* Border Radius */
            --radius-sm: 6px;
            --radius: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --radius-2xl: 24px;
            --radius-full: 9999px;
            
            /* Spacing Scale */
            --spacing-xs: 0.25rem;
            --spacing-sm: 0.5rem;
            --spacing-md: 1rem;
            --spacing-lg: 1.5rem;
            --spacing-xl: 2rem;
            --spacing-2xl: 3rem;
            
            /* Typography */
            --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-weight-normal: 400;
            --font-weight-medium: 500;
            --font-weight-semibold: 600;
            --font-weight-bold: 700;
            --font-weight-extrabold: 800;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg);
            color: var(--gray-900);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-size: 15px;
        }

        /* Professional Navbar */
        .navbar {
            background: var(--bg-card) !important;
            box-shadow: var(--shadow-sm);
            border-bottom: 1px solid var(--border);
            padding: 1rem 0;
            position: sticky !important;
            top: 0 !important;
            z-index: 1050 !important;
            backdrop-filter: blur(12px) saturate(180%);
            background: rgba(255, 255, 255, 0.98) !important;
            margin-bottom: 0;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .navbar.scrolled {
            box-shadow: var(--shadow-md);
            padding: 0.75rem 0;
        }
        
        .navbar .container {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }

        .navbar-brand {
            font-weight: var(--font-weight-extrabold);
            font-size: 1.5rem;
            color: var(--primary) !important;
            display: flex;
            align-items: center;
            gap: 0.625rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: -0.02em;
        }

        .navbar-brand:hover {
            color: var(--primary-dark) !important;
            transform: translateY(-1px);
        }

        .navbar-brand i {
            font-size: 1.75rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-link {
            font-weight: var(--font-weight-medium);
            color: var(--gray-600) !important;
            padding: 0.625rem 1rem !important;
            border-radius: var(--radius-md);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            font-size: 0.9375rem;
            margin: 0 0.25rem;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0.5rem;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: calc(100% - 1rem);
            height: 2px;
            background: var(--primary);
            border-radius: var(--radius-full);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-link:hover {
            color: var(--primary) !important;
            background: var(--primary-50);
        }

        .nav-link:hover::before {
            transform: translateX(-50%) scaleX(1);
        }

        .nav-link.active {
            color: var(--primary) !important;
            background: var(--primary-50);
            font-weight: var(--font-weight-semibold);
        }

        .nav-link.active::before {
            transform: translateX(-50%) scaleX(1);
        }

        /* Professional User Dropdown */
        .user-dropdown {
            position: relative;
        }

        .navbar .navbar-collapse {
            overflow: visible;
        }

        .user-dropdown .dropdown-menu {
            z-index: 1060;
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: 0.875rem;
            margin-right: 0.625rem;
            border: 2px solid var(--primary-100);
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
        }

        .notification-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: var(--font-weight-bold);
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
        }

        .dropdown-menu {
            border: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
            border-radius: var(--radius-xl);
            padding: 0.5rem;
            margin-top: 0.75rem;
            min-width: 260px;
            background: var(--bg-card);
        }

        .dropdown-item {
            padding: 0.75rem 1rem;
            border-radius: var(--radius-md);
            font-weight: var(--font-weight-medium);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.9375rem;
            color: var(--gray-700);
        }

        .dropdown-item:hover {
            background: var(--primary-50);
            color: var(--primary);
        }

        .dropdown-item.active {
            background: var(--primary-50);
            color: var(--primary);
            font-weight: var(--font-weight-semibold);
        }

        .dropdown-item i {
            width: 20px;
            color: var(--gray-500);
            font-size: 0.875rem;
        }

        .dropdown-item:hover i,
        .dropdown-item.active i {
            color: var(--primary);
        }

        .dropdown-divider {
            margin: 0.5rem 0;
            border-color: var(--border);
        }

        /* Professional Buttons */
        .btn {
            border-radius: var(--radius-md);
            font-weight: var(--font-weight-semibold);
            padding: 0.625rem 1.5rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            font-size: 0.9375rem;
            letter-spacing: 0.01em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            line-height: 1.5;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.2), 0 1px 2px 0 rgba(37, 99, 235, 0.1);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px 0 rgba(37, 99, 235, 0.3), 0 2px 4px 0 rgba(37, 99, 235, 0.2);
        }

        .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.2);
        }

        .btn-outline-primary {
            border: 1.5px solid var(--primary);
            color: var(--primary);
            background: transparent;
        }

        .btn-outline-primary:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px 0 rgba(37, 99, 235, 0.2);
        }

        .btn-lg {
            padding: 0.875rem 2rem;
            font-size: 1rem;
            border-radius: var(--radius-lg);
        }

        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        /* Professional Cards */
        .card {
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-sm);
            background: var(--bg-card);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
            border-color: var(--border-dark);
        }

        .card-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            font-weight: var(--font-weight-semibold);
            border: none;
            padding: 1.25rem 1.5rem;
            font-size: 1rem;
        }

        .card-body {
            padding: 1.5rem;
        }

        /* Professional Forms */
        .form-control {
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: var(--font-weight-normal);
            font-size: 0.9375rem;
            background: var(--bg-card);
            color: var(--gray-900);
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            outline: none;
        }

        .form-control::placeholder {
            color: var(--gray-400);
        }

        .form-label {
            font-weight: var(--font-weight-semibold);
            color: var(--gray-700);
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }

        .form-select {
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--bg-card);
        }

        .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            outline: none;
        }

        /* Professional Alerts */
        .alert {
            border-radius: var(--radius-lg);
            border: 1px solid transparent;
            box-shadow: var(--shadow-sm);
            padding: 1rem 1.5rem;
            font-weight: var(--font-weight-medium);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .alert-success {
            background: #f0fdf4;
            border-color: #bbf7d0;
            color: #166534;
        }

        .alert-danger {
            background: #fef2f2;
            border-color: #fecaca;
            color: #991b1b;
        }

        .alert-warning {
            background: #fffbeb;
            border-color: #fed7aa;
            color: #92400e;
        }

        .alert-info {
            background: #eff6ff;
            border-color: #bfdbfe;
            color: #1e40af;
        }

        /* Main Content - Professional Layout */
        main {
            min-height: calc(100vh - 200px);
            padding: 2.5rem 0;
            background: var(--bg);
        }

        main {
            padding: 2.5rem 0;
        }
        
        main .container {
            padding-top: 0.5rem;
        }

        /* Page Headers */
        .page-header {
            margin-bottom: 2rem;
        }

        .page-title {
            font-size: 2rem;
            font-weight: var(--font-weight-extrabold);
            color: var(--gray-900);
            margin-bottom: 0.5rem;
            letter-spacing: -0.02em;
        }

        .page-subtitle {
            color: var(--gray-600);
            font-size: 1rem;
            font-weight: var(--font-weight-normal);
        }

        /* Section Headers */
        .section-header {
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--border);
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: var(--font-weight-bold);
            color: var(--gray-900);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .section-description {
            color: var(--gray-600);
            font-size: 0.9375rem;
            margin-top: 0.5rem;
        }

        /* Professional Footer */
        footer {
            background: linear-gradient(135deg, var(--gray-900), var(--dark));
            color: var(--gray-300);
            margin-top: auto;
            padding: 3.5rem 0 1.5rem;
            border-top: 1px solid var(--gray-800);
        }

        .footer-title {
            font-weight: var(--font-weight-bold);
            font-size: 1rem;
            margin-bottom: 1.25rem;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.875rem;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.625rem;
        }

        .footer-links a {
            color: var(--gray-400);
            text-decoration: none;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 0.625rem;
            font-size: 0.9375rem;
            font-weight: var(--font-weight-medium);
        }

        .footer-links a:hover {
            color: white;
            transform: translateX(4px);
        }

        .footer-links i {
            width: 18px;
            font-size: 0.875rem;
        }

        .footer-divider {
            border-top: 1px solid var(--gray-800);
            margin: 2.5rem 0 1.5rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .navbar-brand {
                font-size: 1.25rem;
            }
            
            .navbar {
                padding: 0.75rem 0;
                position: sticky !important;
                top: 0 !important;
                z-index: 1050 !important;
            }

            main {
                padding: 1.5rem 0;
            }

            main {
                padding: 1.5rem 0;
            }
            
            main .container {
                padding-top: 0.5rem;
            }
        }

        /* Container adjustments */
        .container {
            max-width: 100%;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }

        /* Full width for dashboard */
        .dashboard-wrapper .container,
        .dashboard-wrapper > .container {
            max-width: 100%;
            padding-left: 2rem;
            padding-right: 2rem;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Professional Badges */
        .badge {
            font-weight: var(--font-weight-semibold);
            padding: 0.375rem 0.75rem;
            border-radius: var(--radius);
            font-size: 0.8125rem;
            letter-spacing: 0.02em;
        }

        /* Professional Tables */
        .table {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .table thead {
            background: var(--gray-50);
        }

        .table thead th {
            font-weight: var(--font-weight-semibold);
            color: var(--gray-700);
            text-transform: uppercase;
            font-size: 0.8125rem;
            letter-spacing: 0.05em;
            border-bottom: 2px solid var(--border);
            padding: 1rem;
        }

        .table tbody tr {
            transition: all 0.2s ease;
        }

        .table tbody tr:hover {
            background: var(--gray-50);
        }

        .table tbody td {
            padding: 1rem;
            color: var(--gray-700);
            border-bottom: 1px solid var(--border);
        }

        /* Professional Breadcrumbs */
        .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 1.5rem;
        }

        .breadcrumb-item {
            font-size: 0.875rem;
        }

        .breadcrumb-item a {
            color: var(--gray-600);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .breadcrumb-item a:hover {
            color: var(--primary);
        }

        .breadcrumb-item.active {
            color: var(--gray-900);
            font-weight: var(--font-weight-medium);
        }

body.user-authenticated main .container {
    padding-top: 0.5rem;
}
