﻿/* Header Enhancements */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: #0d6efd;
}

.nav-link {
    color: #6c757d !important;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.nav-link.active {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.user-dropdown {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.user-dropdown:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.dropdown-menu {
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem 0;
}

.dropdown-item {
    transition: background-color 0.15s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    color: #495057 !important;
}

.dropdown-item:hover {
    background-color: #0d6efd !important;
    color: white !important;
}

.dropdown-item:focus {
    background-color: #0d6efd !important;
    color: white !important;
}

/* Specific styling for colored icons in dropdown items */
.dropdown-item:hover .text-success,
.dropdown-item:hover .text-primary,
.dropdown-item:hover .text-info,
.dropdown-item:hover .text-secondary,
.dropdown-item:hover .text-warning {
    color: white !important;
}

.dropdown-item:focus .text-success,
.dropdown-item:focus .text-primary,
.dropdown-item:focus .text-info,
.dropdown-item:focus .text-secondary,
.dropdown-item:focus .text-warning {
    color: white !important;
}

/* Special handling for danger item */
.dropdown-item.text-danger {
    color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

.dropdown-item.text-danger:focus {
    background-color: #dc3545 !important;
    color: white !important;
}

.dropdown-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-weight: 500;
}

.btn:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Ensure proper alignment of navbar items */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        align-items: stretch;
    }

    .navbar-nav .nav-item {
        align-items: stretch;
    }

    .nav-link {
        margin: 0.25rem 0;
        border-radius: 8px;
    }

    .user-dropdown {
        border: none;
        background-color: #f8f9fa;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background-color: transparent;
        margin-top: 1rem;
    }

    /* Mobile button fixes */
    .navbar .btn {
        margin: 0.25rem 0;
        width: 100%;
        text-align: center;
    }
}

/* Smooth transitions */
.transition-all {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Active page highlighting */
.nav-link[aria-current="page"] {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 600;
}