/* Public header / layout */
/* Navbar Styling */
        .navbar {
            background: rgba(255, 255, 255, 0.98) !important;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(12, 52, 131, 0.1);
            border-bottom: 2px solid rgba(12, 52, 131, 0.1);
            padding: 10px 0;
            transition: all 0.3s ease;
        }
        
        .navbar-scrolled {
            background: rgba(255, 255, 255, 0.98) !important;
            box-shadow: 0 8px 30px rgba(12, 52, 131, 0.15);
            padding: 8px 0;
        }
        
        .navbar-brand {
            padding: 0;
            position: relative;
            overflow: hidden;
        }
        
        .logo-container {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .logo-img {
            height: 60px;
            width: auto;
            max-width: 100%;
            transition: all 0.3s ease;
            filter: drop-shadow(0 2px 4px rgba(12, 52, 131, 0.2));
        }
        
        .brand-name {
            font-size: 1.4rem;
            font-weight: 800;
            background: #0c3483;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-left: 10px;
            letter-spacing: 1px;
        }
        
        /* Dropdown Styling */
        .dropdown-menu {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(12, 52, 131, 0.08);
            border-radius: 1.25rem;
            box-shadow: 0 16px 36px rgba(12, 52, 131, 0.15);
            margin-top: 10px;
            padding: 0.7rem;
            min-width: 220px;
        }

        .dropdown-toggle {
            border-radius: 999px !important;
        }
        
        .dropdown-item {
            color: #1a472a;
            font-weight: 600;
            padding: 0.72rem 0.9rem;
            border-radius: 999px;
            transition: all 0.2s ease;
            margin: 0.15rem 0;
        }
        
        .dropdown-item:hover {
            background: rgba(12, 52, 131, 0.08);
            color: #0c3483;
            transform: translateX(2px);
        }
        
        /* Button Styling */
        .btn-nav {
            padding: 10px 25px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-outline-primary {
            background: transparent;
            color: #0c3483;
            border: 2px solid #0c3483;
        }
        
        .btn-outline-primary:hover {
            background: #0c3483;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(12, 52, 131, 0.2);
        }
        
        .btn-primary {
            background: #0c3483;
            color: white;
            border: none;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(12, 52, 131, 0.3);
        }
        
        /* User Dropdown */
        #userDropdown {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px !important;
            background: rgba(227, 242, 253, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(12, 52, 131, 0.1);
        }
        
        #userDropdown:hover {
            background: rgba(227, 242, 253, 0.6);
            border-color: rgba(12, 52, 131, 0.2);
        }
        
        /* Alert Styling */
        .alert-container {
            position: fixed;
            top: 100px;
            left: 0;
            right: 0;
            z-index: 9999;
            padding: 0 15px;
            pointer-events: none;
        }
        
        .alert {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 1rem;
            box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
            border-left: 5px solid #0c3483;
            padding: 1rem 1.1rem 1rem 1rem;
            max-width: 520px;
            margin: 0 auto;
            pointer-events: auto;
            animation: slideDown 0.3s ease;
            color: #1e293b;
            line-height: 1.5;
        }

        .alert i:first-child,
        .alert .fa-solid:first-child,
        .alert .fa-regular:first-child,
        .alert .fa:first-child {
            margin-top: 0.15rem;
            font-size: 1.05rem;
            flex-shrink: 0;
        }
        
        .alert-success {
            background: linear-gradient(135deg, rgba(230, 255, 238, 0.95), rgba(255,255,255,0.98));
            border-left-color: #198754;
            color: #14532d;
        }
        
        .alert-danger {
            background: linear-gradient(135deg, rgba(255, 237, 238, 0.95), rgba(255,255,255,0.98));
            border-left-color: #dc3545;
            color: #7f1d1d;
        }
        
        .alert-warning {
            background: linear-gradient(135deg, rgba(255, 247, 214, 0.96), rgba(255,255,255,0.98));
            border-left-color: #f59e0b;
            color: #8a5b00;
        }
        
        .alert-info {
            background: linear-gradient(135deg, rgba(232, 244, 255, 0.96), rgba(255,255,255,0.98));
            border-left-color: #0c3483;
            color: #0f172a;
        }

        .alert strong {
            font-weight: 700;
        }

        .alert .btn-close {
            margin-left: auto;
            padding: 0.25rem;
            opacity: 0.7;
            filter: grayscale(1);
        }

        .alert .btn-close:hover {
            opacity: 1;
        }
        
        /* Toggler */
        .navbar-toggler {
            border: 2px solid rgba(12, 52, 131, 0.2);
            border-radius: 8px;
            padding: 8px;
            transition: all 0.3s ease;
        }
        
        .navbar-toggler:hover {
            border-color: #0c3483;
        }

        @media (min-width: 992px) {
            .navbar-toggler:hover {
                transform: rotate(90deg);
            }
        }
        
        .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(12, 52, 131, 0.1);
        }
        
        /* Animations */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .navbar-collapse {
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(10px);
                border-radius: 12px;
                padding: 20px;
                margin-top: 15px;
                box-shadow: 0 10px 30px rgba(12, 52, 131, 0.15);
                animation: slideInRight 0.3s ease;
            }
            
            .nav-link {
                margin: 5px 0;
                padding: 12px 15px !important;
            }
            
            .navbar-nav .btn {
                margin: 10px 0;
                width: 100%;
            }
            
            #userDropdown {
                justify-content: center;
            }
            
            .logo-img {
                height: 50px;
            }
            
            .brand-name {
                font-size: 1.2rem;
            }
        }
        
        @media (max-width: 576px) {
            .logo-img {
                height: 45px;
            }
            
            .brand-name {
                font-size: 1.1rem;
            }
            
            .alert {
                max-width: 100%;
                margin: 10px;
            }
        }
        
        .nav-item .nav-link.active {
            color: #0c3483 !important;
            font-weight: 700;
        }
        
        /* Sticky Footer Layout */
        html, body {
            height: 100%;
            margin: 0;
        }
        body {
            display: flex;
            flex-direction: column;
        }
        main {
            flex: 1 0 auto;
            padding-top: 0 !important;
        }
        .site-footer {
            flex-shrink: 0;
        }

        /* Keep pages visible if JavaScript is disabled */
        body.page-loaded {
            opacity: 1;
        }
        /* Smooth fade-in for main content */
        main {
            animation: fadeInUp 0.4s ease-out 0.1s both;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        /* Smooth transitions for cards and elements */
        .card, .navbar, .btn, .alert {
            transition: all 0.3s ease;
        }
