/* Modern Navbar Styles - Blue & Teal Theme */

.modern-navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.375rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Brand/Logo */
.navbar-brand-modern {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand-modern:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.brand-text {
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-modern {
    color: #64748b !important;
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link-modern i {
    font-size: 0.9375rem;
}

.nav-link-modern:hover {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08);
}

.nav-link-modern.active {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.12);
    font-weight: 600;
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    border-radius: 2px 2px 0 0;
}

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

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    background: rgba(2, 132, 199, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-menu-btn:hover {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.2);
    color: #0284c7;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-top: 10px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
}

.dropdown-item form {
    margin: 0;
    width: 100%;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    background: rgba(2, 132, 199, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
    text-decoration: none;
}

.profile-trigger:hover {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.2);
    color: #0284c7;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    color: #0284c7 !important;
    background: transparent;
    border: 2px solid #0284c7;
    padding: 0.4375rem 1.125rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #0284c7;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-register {
    color: white !important;
    background: linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
    border: none;
    padding: 0.4375rem 1.125rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.btn-logout {
    color: #ef4444 !important;
    background: transparent;
    border: 2px solid #ef4444;
    padding: 0.4375rem 1.125rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.375rem;
    cursor: pointer;
    color: #0f172a;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: #0284c7;
    color: #0284c7;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-menu .nav-link-modern {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Badge for notifications */
.nav-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 20px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Divider */
.nav-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-container {
        flex-wrap: wrap;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-login,
    .btn-register,
    .btn-logout {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 993px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Navbar Container */
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 1rem;
}
