.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #343a40, #495057) !important;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #ffc107 !important;
    transform: scale(1.05);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ffca2c);
    border-radius: 2px;
}

/* User dropdown styles */
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #343a40;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
    transform: translateX(4px);
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.dropdown-header {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-color: #e9ecef;
}

/* Mobile responsive improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(52, 58, 64, 0.95);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
        border-radius: 6px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(255, 193, 7, 0.2);
        border: 1px solid rgba(255, 193, 7, 0.3);
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .navbar-nav.ms-auto {
        margin-bottom: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 25px !important;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    .dropdown-menu {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw;
        max-width: 300px;
        margin: 0 !important;
    }
}

/* Animation for navbar toggle */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .navbar-brand,
    .user-avatar,
    .dropdown-item {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: #fff;
    }
    
    .dropdown-menu {
        border: 2px solid #000;
    }
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown-toggle:focus,
.navbar-toggler:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Loading state */
.navbar.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background-color: #343a40;
        border: 1px solid #495057;
    }
    
    .dropdown-item {
        color: #e9ecef;
    }
    
    .dropdown-item:hover {
        background-color: #495057;
        color: #fff;
    }
    
    .dropdown-header {
        color: #adb5bd;
    }
} 