/* Dropdown hover effect - Desktop only */
@media (min-width: 992px) {
    #loginDropdownContainer:hover .dropdown-menu {
        display: block !important;
        margin-top: 2px !important;
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    #loginDropdownContainer:hover #dropdownArrow {
        transform: rotate(180deg) !important;
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 2px;
        box-shadow: none;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }
    /* Reduce margins for mobile */
    .navbar-brand {
        margin-right: 8px !important;
        padding: 0 !important;
    }

        .navbar-brand img {
            height: 30px !important;
        }

    .custom-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .btn-soft-primary {
        min-width: 140px !important;
        padding: 6px 12px !important;
        font-size: 0.875rem !important;
    }

    .d-lg-none.ms-auto {
        margin-left: 8px !important;
    }
    /* Mobile hover effect for arrow */
    #loginDropdownContainerMobile:hover #dropdownArrowMobile {
        transform: rotate(180deg) !important;
    }

    .mobile-sidebar {
        width: 100%;
        left: -100%;
    }
}

#dropdownArrow, #dropdownArrowMobile {
    transition: transform 0.3s ease !important;
    transform: rotate(0deg) !important;
    display: inline-block !important;
}

/* Hide dropdown by default */
.dropdown-menu {
    display: none;
}

/* Gap between button and dropdown */
#loginDropdownContainer .dropdown-menu {
    margin-top: 2px !important;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
}

    .mobile-sidebar.show {
        left: 0;
    }

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    min-height: 50px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

    .mobile-sidebar-header h5 {
        color: #6c757d;
        font-weight: 600;
    }

.mobile-sidebar-content {
    padding: 20px;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

    .mobile-sidebar-overlay.show {
        display: block;
    }
