/* User Dropdown Styles */
.nav-item.dropdown .dropdown-toggle::after {
    display: none; /* Hide default dropdown arrow */
}

#userDropdown {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

#userDropdown:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(2, 174, 236, 0.5);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    right: 0 !important;
    left: auto !important;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #2c3391, #242b7a);
    padding: 0;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.5rem;
    background: rgba(2, 174, 236, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: #fff !important;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    width: auto;
}

.dropdown-item:hover {
    background-color: rgba(2, 174, 236, 0.2);
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

#dropdown-user-avatar {
    border: 3px solid #02aeec;
    object-fit: cover;
    width: 80px;
    height: 80px;
    box-shadow: 0 0 15px rgba(2, 174, 236, 0.3);
    transition: all 0.3s ease;
}

#dropdown-user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(2, 174, 236, 0.5);
}

#dropdown-user-name {
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

#dropdown-user-email {
    font-size: 0.85rem;
    opacity: 0.8;
}

#logout-btn {
    cursor: pointer;
    background: rgba(255, 75, 75, 0.1);
    border: none;
    width: calc(100% - 1rem);
    text-align: center;
    color: #ff4b4b !important;
    padding: 0.75rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logout-btn:hover {
    background: rgba(255, 75, 75, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255, 75, 75, 0.2);
}

#logout-btn i {
    margin-right: 8px;
}

/* Bank accounts styling */
.dropdown-bank-account {
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.dropdown-bank-account:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.bank-account-type {
    font-weight: 500;
    color: #02aeec;
}

.badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.badge.bg-primary {
    background-color: #02aeec !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Mobile specific styles */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        right: 15px !important;
        left: auto !important;
        width: calc(100% - 30px);
        max-width: 320px;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.25rem !important;
    }
    
    #dropdown-user-avatar {
        width: 70px;
        height: 70px;
    }
}

/* Animation for dropdown items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item, .dropdown-bank-account {
    animation: fadeIn 0.3s ease forwards;
}
.custom-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-warning {
    background: #ffc107;
    color: #212529;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    margin-right: 10px;
    font-weight: bold;
}

.dropdown-item:nth-child(1) { animation-delay: 0.1s; }
.dropdown-item:nth-child(2) { animation-delay: 0.15s; }
.dropdown-item:nth-child(3) { animation-delay: 0.2s; }
/* Continue pattern as needed */