/* DASHBOARD STYLES */
        .dashboard {
            display: none;
            min-height: 100vh;
        }

        .dashboard.active {
            display: block;
        }

        /* Header - Modern Transparent Style with Sticky Behavior */
        .header {
            background: rgba(0, 0, 0, 0.6);
            padding: 25px 0;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-family: 'Josefin Sans', sans-serif;
            position: sticky;
            top: 0;
            z-index: 2000;
            transition: all 0.06s ease-out;
        }

        .header.scrolled {
            padding: 12px 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        body[data-theme="dark"] .header.scrolled {
            background: rgba(0, 0, 0, 0.98);
        }

        .header.scrolled .logo {
            font-size: 28px;
            line-height: 1.05;
        }

        .header.scrolled .logo-image {
            width: 46px;
            height: 46px;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 42px;
            font-weight: 800;
            line-height: 1.05;
            color: white;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            letter-spacing: 1px;
            transition: all 0.06s ease-out;
        }

        .logo-image {
            width: 88px;
            height: 88px;
            background: transparent;
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 8px;
            overflow: hidden;
            transition: all 0.06s ease-out;
        }

        .logo-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }


        .user-info {
            display: flex;
            align-items: center;
            gap: 20px;
            font-family: 'Josefin Sans', sans-serif;
        }

        .username {
            color: white;
            font-weight: 500;
            font-size: 16px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .logout-btn {
            padding: 10px 24px;
            background-color: transparent;
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.06s ease-out;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-family: 'Josefin Sans', sans-serif;
        }

        .logout-btn:hover {
            background-color: rgba(45, 55, 72, 0.8);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        /* Navigation Menu - Integrated with Header */
        .nav-menu {
            display: none;
            /* Hide the separate nav menu */
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .nav-content {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .nav-item {
            padding: 8px 16px;
            text-align: center;
            background: transparent;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.06s ease-out;
            border-radius: 8px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            border-bottom: 2px solid transparent;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .header.scrolled .nav-item {
            padding: 6px 12px;
            font-size: 13px;
        }

        .nav-item:hover {
            color: #b0b0b0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .nav-item.active {
            color: white;
            text-shadow: none;
            border-bottom: 3px solid white;
        }

        body.safari .header {
            transition: background-color 0.06s ease, box-shadow 0.06s ease;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            transform: translateZ(0);
        }

        body.safari .logo,
        body.safari .logo-image,
        body.safari .nav-item {
            transition: color 0.06s ease, background-color 0.06s ease, box-shadow 0.06s ease;
        }

        body.is-scrolling .header,
        body.is-scrolling .logo,
        body.is-scrolling .logo-image,
        body.is-scrolling .nav-item,
        body.is-scrolling .logout-btn {
            transition: none !important;
        }

        body.safari.is-scrolling .header,
        body.safari.is-scrolling .logo,
        body.safari.is-scrolling .logo-image,
        body.safari.is-scrolling .nav-item {
            transition: none !important;
        }

        body.safari.is-scrolling .header {
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }

        /* Page Content */
        .page-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
            position: relative;
            z-index: 0;
            isolation: isolate;
        }

        .page {
            display: none;
            animation: fadeInPage 0.4s ease-out;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeInPage {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .page-title {
            font-size: 32px;
            color: #f0f0f0;
            margin-bottom: 30px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .content-box {
            background: #3a3a3a;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            margin-bottom: 20px;
        }

        .content-box h3 {
            color: #e0e0e0;
            font-size: 22px;
            margin-bottom: 15px;
        }

        .content-box p {
            color: #b0b0b0;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .logo-image img {
                image-rendering: -webkit-optimize-contrast;
            }
        }

        @supports not (gap: 1rem) {
            .logo > * + * {
                margin-left: 20px;
            }

            .user-info > * + * {
                margin-left: 20px;
            }
        }
