/* ===== SIDEBAR (Desktop) ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 250px;
    height: calc(100vh - 70px);
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 0;
    display: none; /* Hidden on mobile by default */
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 999;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    margin: 0;
    gap: 8px;
    flex: 1;
    align-items: stretch;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
}

.sidebar-item:first-child {
    margin-top: 0;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #ffffff;
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.sidebar-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-item span {
    flex: 1;
    text-align: left;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-item:hover i {
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-item:hover::before {
    height: 60%;
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-item.active::before {
    height: 70%;
}

.sidebar-item.active i {
    color: #ffffff;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.sidebar-footer .sidebar-item {
    margin: 0;
    font-size: 13px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-footer .sidebar-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-footer .sidebar-item i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.sidebar-footer .sidebar-item:hover i {
    color: #ffffff;
}

/* WhatsApp Support Styling */
#sidebarSupport:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25D366;
}

#sidebarSupport:hover i {
    color: #25D366;
}

/* Sidebar Language Selector */
.sidebar-language-selector {
    padding: 0;
    position: relative;
}

.language-dropdown-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.language-dropdown-button.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.current-flag {
    font-size: 18px;
}

.current-lang {
    flex: 1;
    text-align: left;
    font-size: 13px;
}

.dropdown-arrow-icon {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.language-dropdown-button.active .dropdown-arrow-icon {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.6);
}

.language-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.language-dropdown-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.flag-icon {
    font-size: 18px;
}

.lang-name {
    flex: 1;
    text-align: left;
}

.sidebar-version {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    padding: 8px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Show sidebar and hide bottom nav on desktop */
@media screen and (min-width: 1024px) {
    .sidebar {
        display: flex !important;
        margin-top: 0;
        padding-top: 0;
        box-shadow: none;
        border-top: 0;
    }

    .sidebar-nav {
        padding-top: 0;
        margin-top: 0;
    }

    .sidebar-nav .sidebar-item:first-child {
        margin-top: 0;
        padding-top: 16px;
    }

    .bottom-nav {
        display: none !important;
    }
}

/* Logout Button in Header */
.logout-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

.logout-btn:active {
    transform: scale(0.95);
}

.logout-btn i {
    font-size: 18px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 70px;
    background: #000000;
    border-top: 2px solid #ffffff;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-muted);
    flex: 1;
    padding: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-icon-wrapper i {
    font-size: 1.3rem;
    z-index: 1;
    transition: all 0.3s;
    color: #888888;
}

/* Active State */
.nav-item.active .nav-icon-wrapper {
    background: transparent;
    border: 1px solid #ffffff;
}

.nav-item.active .nav-icon-wrapper i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Hover State */
.nav-item:hover .nav-icon-wrapper {
    background-color: transparent;
    border: 1px solid #ffffff;
    transform: translateY(-3px);
}

.nav-item:hover .nav-icon-wrapper i {
    color: #ffffff;
}


/* Responsive Design */
@media screen and (min-width: 600px) {
    .bottom-nav {
        max-width: 600px;
    }

    .nav-icon-wrapper {
        width: 52px;
        height: 52px;
    }

    .nav-icon-wrapper i {
        font-size: 1.5rem;
    }

    .nav-label {
        font-size: 0.7rem;
    }

    .nav-icon-primary {
        width: 65px;
        height: 65px;
    }

    .nav-icon-primary i {
        font-size: 2rem;
    }
}
