:root {
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-sidebar: #f2f2f7;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-white: #ffffff;
    --border-color: #e9ecef;
    --gradient-1: linear-gradient(135deg, #ee9025 0%, #ee9025 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}


/* Navbar — azure sky blue with warm orange glow & cloud */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #0066EE 0%, #0088FF 30%, #33AAFF 55%, #f5c87a 92%, #f0b960 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* White cloud decoration on the navbar */
.navbar::before {
    content: '';
    position: absolute;
    top: -18px;
    right: 12%;
    width: 120px;
    height: 50px;
    background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.15) 70%, transparent 100%);
    border-radius: 60% 60% 40% 40% / 70% 70% 30% 30%;
    filter: blur(1.5px);
    pointer-events: none;
    z-index: 1;
    animation: navCloudDrift 16s ease-in-out infinite;
}

/* Subtle warm glow spot */
.navbar::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 25%;
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse at 50% 80%, rgba(252, 196, 100, 0.35) 0%, rgba(252, 176, 69, 0.12) 50%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(6px);
}

@keyframes navCloudDrift {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.85; }
    50% { transform: translateX(30px) scale(1.08); opacity: 1; }
}

/*.navbar.banner-hidden {
    top: 0;
}*/

.navbar.scrolled {
    background: linear-gradient(135deg, #0055CC 0%, #0077EE 30%, #2299EE 55%, #e8b563 92%, #dba64e 100%);
    box-shadow: 0 4px 24px rgba(100, 180, 220, 0.25), 0 2px 12px rgba(240, 180, 80, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.navbar.scrolled .nav-menu > li > a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 60, 120, 0.15);
}

.nav-container {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 1px 3px rgba(0, 60, 120, 0.18);
    white-space: nowrap;
}

.nav-menu > li > a:hover {
    color: #fff8e1;
    text-shadow: 0 0 8px rgba(252, 196, 100, 0.5);
}

.nav-menu > li > a.active {
    color: #fff8e1;
    text-shadow: 0 0 10px rgba(252, 196, 100, 0.55);
}

.nav-menu > li > a.active::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.22rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fde68a, #f59e0b);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}

/* Dropdown Menu - Modern Style */
.nav-menu li {
    position: relative;
}

/* 添加悬停区域，防止菜单消失 */
.nav-menu > li::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 50px;
    background: transparent;
    z-index: 998;
}

.nav-menu .dropdown {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    transform: translateY(0);
    background: white;
    width: 100vw;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
    padding: 2rem 0;
    margin-top: 0;
}

.nav-menu li:hover > .dropdown,
.nav-menu li:focus-within > .dropdown,
.nav-menu .dropdown:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.nav-menu .dropdown.show,
.user-dropdown.show,
.lang-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Dropdown inner container */
.dropdown-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Dropdown grid layout */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.nav-menu .dropdown a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    border-radius: 8px;
    background: transparent;
    font-size: 0.95rem;
}

.nav-menu .dropdown a:hover {
    background: #f8f9fa;
    transform: translateX(0);
}
/* Category header styling */
        .dropdown-category-header {
            grid-column: 1 / -1;
            color: #6c757d;
            font-size: 0.875rem;
            font-weight: 600;
            padding: 12px 0 8px;
            margin-top: 8px;
            border-bottom: 2px solid #e9ecef;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dropdown-category-header:first-child {
            margin-top: 0;
        }
/* Special styling for productCategoriesDropdown */
        #iproyalProductCategoriesDropdown {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            width: 100%;
        }

        /* Each category column */
        #iproyalProductCategoriesDropdown .dropdown-category-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        /* Category headers - displayed at top of each column */
        #iproyalProductCategoriesDropdown .dropdown-category-header {
            color: #6c757d;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0 0 12px 0;
            margin: 0;
            border-bottom: 2px solid #dee2e6;
        }

        /* Container for items within each column */
        #iproyalProductCategoriesDropdown .dropdown-category-items {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        /* Items within the category */
        #iproyalProductCategoriesDropdown .dropdown-category-items a {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 0.875rem 1rem;
            width: 100%;
            box-sizing: border-box;
            cursor: pointer;
            color: #1a1a1a;
            text-decoration: none;
            transition: all 0.25s ease;
            position: relative;
            border-radius: 8px;
            background: transparent;
            font-size: 0.95rem;
        }

        #iproyalProductCategoriesDropdown .dropdown-category-items a:hover {
            background: #f8f9fa;
            transform: translateX(0);
        }

        /* Product dropdown - same column layout as pricing dropdown */
        #iproyalProductListDropdown {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            width: 100%;
        }

        #iproyalProductListDropdown .dropdown-category-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        #iproyalProductListDropdown .dropdown-category-header {
            color: #6c757d;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0 0 12px 0;
            margin: 0;
            border-bottom: 2px solid #dee2e6;
        }

        #iproyalProductListDropdown .dropdown-category-items {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        #iproyalProductListDropdown .dropdown-category-items a {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 0.875rem 1rem;
            width: 100%;
            box-sizing: border-box;
            cursor: pointer;
            color: #1a1a1a;
            text-decoration: none;
            transition: all 0.25s ease;
            position: relative;
            border-radius: 8px;
            background: transparent;
            font-size: 0.95rem;
        }

        #iproyalProductListDropdown .dropdown-category-items a:hover {
            background: #f8f9fa;
            transform: translateX(0);
        }

/* 菜单项图标 */
.dropdown-item-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #f0f4f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.25s ease;
}

.nav-menu .dropdown a:hover .dropdown-item-icon {
    background: #e8f5f3;
    transform: scale(1.05);
}

/* 菜单项内容 */
.dropdown-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.dropdown-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.dropdown-item-desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.dropdown-item-price {
    font-size: 0.875rem;
    color: #2dd4bf;
    font-weight: 600;
    margin-top: 0.125rem;
}

/* 标签徽章 */
.dropdown-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
}

.badge-hot {
    background: #FFF4ED;
    color: #F97316;
    border: 1px solid #FED7AA;
}

.badge-new {
    background: #DBEAFE;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

.badge-popular {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

/* Dropdown item text without content wrapper */
.dropdown-item-text {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* Chevron Icon for Dropdown */
.nav-menu .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    width: auto;
    min-width: max-content;
    line-height: 1.2;
}

.nav-menu .dropdown-toggle::after {
    content: '';
    position: static;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: all 0.25s ease;
    opacity: 0.7;
    flex: 0 0 auto;
}

.nav-menu li:hover .dropdown-toggle::after,
.nav-menu li:focus-within .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notification Bell */
.notification-bell {
    position: relative;
}

/* Notification Bell */
.notification-bell {
    position: relative;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.notification-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #FF3B30 0%, #FF6B6B 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.bell-icon {
    font-size: 1.2rem;
}

/* User Profile */
.user-profile {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: transparent;
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* User Avatar Circle (Collapsed State) */
.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-initial {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dropdown-arrow-icon {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-arrow-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.user-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
    min-width: 280px;
    transform: translateY(-10px);
}

.user-profile:hover .user-dropdown,
.user-dropdown:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* User Dropdown Header */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1rem;
    background: #E8EAF6;
    border-radius: 12px 12px 0 0;
}

.user-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5E6AD2 0%, #7C83DB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(94, 106, 210, 0.25);
    flex-shrink: 0;
}

.user-initial-large {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.user-email-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: #E8EAF6;
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.user-dropdown-item:hover {
    background-color: #F5F7FA;
}

.user-dropdown-item .dropdown-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #F5F7FA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E6AD2;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.user-dropdown-item .dropdown-item-icon i {
    color: #5E6AD2;
    font-size: 1rem;
}

.user-dropdown-item:hover .dropdown-item-icon {
    background: #E8EAF6;
    transform: scale(1.05);
}

.user-dropdown-item:hover .dropdown-item-icon i {
    color: #5E6AD2;
}

.user-dropdown-item .dropdown-item-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
}

.user-dropdown-item .dropdown-item-arrow {
    font-size: 0.7rem;
    color: #cbd5e0;
    margin-left: auto;
}

/* Logout Item */
.logout-item {
    color: #e53e3e;
}

.logout-item .dropdown-item-icon {
    background: #FFF5F5;
    color: #e53e3e;
}

.logout-item .dropdown-item-icon i {
    color: #e53e3e;
}

.logout-item:hover {
    background-color: #FFF5F5;
}

.logout-item:hover .dropdown-item-icon {
    background: #FED7D7;
}

.logout-item:hover .dropdown-item-icon i {
    color: #c53030;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-right: 0;
}

/* 添加悬停区域，防止语言菜单消失 */
.lang-switcher::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 998;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 70px;
    justify-content: center;
}

.lang-flag {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
}

.navbar.scrolled .lang-dropdown-toggle {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.lang-dropdown-toggle:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.lang-dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
    margin-left: 4px;
}

.lang-switcher:hover .lang-dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.lang-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.lang-dropdown a:hover {
    background: #f8f9fa;
    color: #00B894;
    padding-left: 1.25rem;
}

.lang-dropdown a.active {
    background: linear-gradient(90deg, rgba(0, 184, 148, 0.1), transparent);
    color: #00B894;
    position: relative;
}

.lang-dropdown a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #00B894, #00CEC9);
}

.lang-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 95px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    color: var(--text-primary);
    padding: 2rem 0;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(24, 22, 22, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.sidebar-link.active {
    background-color: var(--primary-color);
    color: var(--text-primary);
}
.sidebar-sublink.active {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

/* Sidebar Submenu Styles */
.sidebar-item.has-submenu .sidebar-link {
    position: relative;
    justify-content: space-between;
}

.submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.sidebar-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-submenu.show {
    max-height: 500px; /* 足够大的高度以容纳所有子项 */
}

.sidebar-subitem {
    margin-bottom: 0.125rem;
}

.sidebar-sublink {
    display: block;
    padding: 0.5rem 1.5rem;
    color: rgba(32, 29, 29, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-sublink:hover {
    background-color: rgba(142, 228, 228, 0.1);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
    max-width: 50%;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--text-white);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--text-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Components */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
}

.stat-icon.green {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.stat-icon.orange {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Section Card */
.section-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.table td {
    color: var(--text-secondary);
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-badge.expired {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-nav {
        display: none;
    }

    .sidebar {
        width: 200px;
    }

    .main-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Block Styles */

.uct-icon-2 {
    width: 18px;
    height: 18px;
    background-image: url(/static/images/uct-2.png);
    background-size: 100% 100%;
}
