/* Top Bar */
.top-bar {
    background: #60060f;
    color: white;
    padding: 12px 0;
    font-size: 14px;
}

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

.helpdesk-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpdesk-text {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpdesk-text a {
    transition: all 0.3s ease;
}

.helpdesk-text a:hover {
    color: #FFD700 !important;
}

.helpdesk-text>span {
    transition: all 0.3s ease;
    cursor: pointer;
}

.helpdesk-text>span:hover {
    color: #FFD700 !important;
}

.helpdesk-text>span:hover a {
    color: #FFD700 !important;
}

.helpdesk-text>span:hover span {
    color: #FFD700 !important;
}

.helpdesk-text>span:hover img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(75%) saturate(2000%) hue-rotate(360deg) brightness(104%) contrast(104%);
}

.quick-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.quick-link {
    color: white;
    text-decoration: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #FFD700;
    transform: translateY(-2px);
}

.quick-link:hover svg {
    fill: #8B1538;
}

.quick-link svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Main Header */
.main-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 999;
    position: relative;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    text-decoration: none;
}

/* Logo Container */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Header Logo Image - Responsive */
.header-logo-img {
    display: block;
    margin: 0 auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #d0d0d0;
    padding-top: 20px;
    width: 100%;
}

.kea-code-desktop {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    padding: 8px 20px;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B1538;
}

.nav-link.active,
.nav-link.active-parent {
    color: #8B1538;
}

.dropdown-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 15px 0;
    margin-top: 10px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-link:hover {
    background-color: #f5f5f0;
    color: #8B1538;
    padding-left: 30px;
}

.dropdown-link.active {
    background-color: #fff5f0;
    color: #8B1538;
    font-weight: 600;
    border-left: 3px solid #8B1538;
    padding-left: 22px;
}

/* Bottom Bar for Mobile */
.bottom-bar {
    display: none;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 998;
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 45px;
}

.kea-code {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    z-index: 1000;
}

.menu-bar {
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-menu.active {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.close-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

.close-btn svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

/* Navigation Menu (Mobile) */
.sidebar-nav-menu {
    flex: 1;
    padding: 10px 0;
}

.sidebar-nav-item {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sidebar-nav-link:hover {
    background-color: #f5f5f0;
    color: #8B1538;
}

.sidebar-nav-link.active,
.sidebar-nav-link.active-parent {
    color: #8B1538;
    background-color: #fff5f0;
    border-left: 4px solid #8B1538;
    padding-left: 21px;
}

.chevron {
    width: 20px;
    height: 20px;
    color: #666;
    transition: transform 0.3s ease;
}

.sidebar-nav-link.expanded .chevron {
    transform: rotate(180deg);
    color: #8B1538;
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fafafa;
}

.submenu.expanded {
    max-height: 500px;
}

.submenu-link {
    display: block;
    padding: 14px 25px 14px 50px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.submenu-link:hover {
    background-color: #f5f5f0;
    color: #8B1538;
    padding-left: 55px;
}

.submenu-link.active {
    background-color: #fff5f0;
    color: #8B1538;
    font-weight: 600;
    border-left: 3px solid #8B1538;
    padding-left: 47px;
}

/* Scrollbar Styling */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 25px;
    }

    .header-content {
        padding: 0 25px;
    }

    .top-bar-content {
        padding: 0 25px;
    }

}

@media (max-width: 968px) {
    .quick-links {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .main-header::after {
        display: none !important;
    }

    .bottom-bar {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        padding: 15px;
    }

    .logo-container {
        margin-bottom: 0;
    }

    .header-logo-img {
        width: min(100%, 420px);
    }

    .kea-code-desktop {
        display: none;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .header-content {
        height: auto;
        padding: 15px;
    }

    .top-bar-content {
        padding: 0 15px;
    }

    .helpdesk-text {
        font-size: 12px;
    }

    .kea-code {
        font-size: 14px;
        font-weight: 700;
    }

}

@media (max-width: 480px) {
    .sidebar-menu {
        max-width: 85%;
    }

    .sidebar-header {
        padding: 25px 20px;
    }

}

.kea-code-desktop {
    display: block;
}

/* Top bar icon/link helpers */
.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-separator {
    color: rgba(255, 255, 255, 0.5);
}

.topbar-icon-sm {
    width: 16px;
    height: 16px;
}

.topbar-icon-md {
    width: 18px;
    height: 18px;
}

.topbar-link {
    color: white;
    text-decoration: none;
}

.sidebar-logo-img {
    height: 50px;
    width: auto;
}
