/* Navbar Styles */
.sidebar-transition {
    transition: transform 0.3s ease-in-out;
}
.sidebar-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.active-menu-item {
    background-color: #e5e7eb;
    font-weight: 600;
    color: #111827;
}
.menu-item {
    transition: all 0.2s ease-in-out;
}
.menu-item:hover {
    background-color: #f3f4f6;
    transform: translateX(2px);
}
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
}
.dropdown-enter {
    opacity: 0;
    transform: translateY(-10px);
}
.dropdown-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s, transform 0.2s;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    top: 100%;
    left: 0;
    margin-top: 4px;
}

.dropdown-content a {
    color: #374151;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom alert styles */
.custom-alert {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Table responsive styles */
@media (max-width: 768px) {
    .dropdown-btn {
        min-width: 120px;
        font-size: 12px;
        padding: 4px 8px;
    }

    .dropdown-content {
        min-width: 150px;
    }
}

/* Loading spinner */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
