/* Modern Navbar Styles */

.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Brand Logo */
.modern-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    color: #3B82F6;
    transform: translateY(-1px);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.brand-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.modern-brand:hover .brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.brand-tagline {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Toggle Button */
.modern-toggler {
    border: none;
    padding: 8px;
    background: transparent;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modern-toggler:hover {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.toggler-line {
    width: 24px;
    height: 2px;
    background: #374151;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Links */
.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 4px;
}

.modern-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-link:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.modern-link.active {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
    font-weight: 600;
}

.modern-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #3B82F6;
    border-radius: 2px;
}

.nav-icon {
    font-size: 0.875rem;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Right Side Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn-outline-primary {
    border: 2px solid #3B82F6;
    color: #3B82F6;
    background: transparent;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-primary:hover {
    background: #3B82F6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    background: #3B82F6;
    border: 2px solid #3B82F6;
    color: #ffffff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover .btn-shine {
    left: 100%;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.btn-user {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 180px;
}

.btn-user:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #ffffff;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 400;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: #6B7280;
    transition: transform 0.3s ease;
}

.btn-user[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu {
    min-width: 280px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    margin: -8px -8px 8px -8px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #ffffff;
    font-size: 1rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 0.8rem;
    opacity: 0.9;
}

.dropdown-item {
    padding: 12px 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #3B82F6;
    transform: translateX(4px);
}

.logout-btn {
    color: #DC2626;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-modern {
        padding: 0.5rem 0;
    }
    
    .brand-text {
        font-size: 1.375rem;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    .modern-link {
        padding: 12px 16px;
        margin: 2px 0;
    }
    
    .navbar-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .btn-user {
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        min-width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .brand-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .brand-icon i {
        font-size: 1.125rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    .modern-link {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .btn-outline-primary,
    .btn-primary {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .brand-content {
        display: none;
    }
    
    .brand-icon {
        margin-right: 0;
    }
    
    .modern-link span {
        display: none;
    }
    
    .nav-icon {
        margin-right: 0;
        font-size: 1rem;
    }
    
    .btn-user {
        min-width: auto;
        padding: 8px;
    }
    
    .user-info {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
}

/* Animation Effects */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-modern {
    animation: fadeInDown 0.5s ease-out;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar-modern {
        background: #ffffff;
        border-bottom: 2px solid #000000;
    }
    
    .modern-brand {
        color: #000000;
    }
    
    .modern-link {
        color: #000000;
    }
    
    .modern-link:hover {
        background: #000000;
        color: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .navbar-modern,
    .modern-brand,
    .modern-link,
    .btn-user,
    .dropdown-item {
        transition: none;
    }
    
    .btn-shine {
        display: none;
    }
    
    .modern-brand:hover,
    .modern-link:hover,
    .btn-user:hover {
        transform: none;
    }
}
