﻿/* Desktop dropdown menu enhancement */
.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    min-height: 44px;
}

    .dropdown-item i {
        width: 1.25rem;
        text-align: center;
    }

    .dropdown-item:hover {
        background-color: rgba(var(--primary-rgb), 0.1);
    }

    .dropdown-item.text-danger:hover {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545 !important;
    }

    /* Remove default button styles for logout */
    .dropdown-item[type="submit"] {
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }

/* Mobile user card */
.card.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Ensure proper spacing for mobile buttons */
.d-grid.gap-2 {
    gap: 0.75rem !important;
}

/* Mobile nav link enhancement */
@media (max-width: 991px) {
    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        border-radius: var(--border-radius);
        transition: all 0.2s ease;
        min-height: 48px;
        font-size: 16px;
    }

        .nav-link i {
            width: 1.5rem;
            text-align: center;
            font-size: 1.1rem;
        }

        .nav-link:hover,
        .nav-link:focus {
            background-color: rgba(var(--primary-rgb), 0.1);
            color: var(--primary-color);
        }
}

/* Desktop nav link */
@media (min-width: 992px) {
    .nav-link {
        padding: 0.625rem 1rem;
        border-radius: var(--border-radius);
        font-weight: 500;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .nav-link:hover {
            background-color: rgba(var(--primary-rgb), 0.1);
            color: var(--primary-color);
        }
}

/* User dropdown button */
.btn-light.dropdown-toggle {
    border: 2px solid var(--border-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    min-height: 44px;
}

    .btn-light.dropdown-toggle:hover {
        background-color: var(--bg-light);
        border-color: var(--primary-color);
    }

    .btn-light.dropdown-toggle::after {
        margin-left: 0.5rem;
    }
