/* Navbar Styles - Extracted from header.php for better caching */

.navbar-modern {
    background: var(--navbar-gradient);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(14, 116, 144, 0.18);
    min-height: var(--navbar-height);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-modern.scrolled {
    background: var(--navbar-bg);
    box-shadow: 0 4px 30px rgba(14, 116, 144, 0.28);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

.navbar-brand .brand-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.875rem !important;
    margin: 0 0.125rem;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

/* Navbar Auth Actions */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.auth-actions .btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.auth-actions .btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Modern Dropdown */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(14, 116, 144, 0.06);
    padding: 0.5rem;
    min-width: 220px;
    animation: dropdownFadeIn 0.2s ease;
    z-index: 1050 !important;
}

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

.dropdown-item {
    color: #374151;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: #fff;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    opacity: 0.7;
}

.dropdown-item:hover i {
    opacity: 1;
}

.dropdown-divider {
    border-color: rgba(14, 116, 144, 0.12);
    margin: 0.375rem 0;
}

/* Modern CTA Button */
.btn-modern {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form .form-control {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    padding-right: 42px;
    width: 180px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    width: 240px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-form .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.search-form .btn-search:hover {
    color: #fff;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(15deg);
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
}

.user-avatar:hover {
    border-color: var(--accent-color);
}

.user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 6px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

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

.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.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    z-index: 1050;
    max-width: 400px;
}

.flash-alert {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, #0f766e 0%, #1e40af 100%);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .search-form .form-control,
    .search-form .form-control:focus {
        width: 100%;
    }
}
