.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
    background-color: var(--surface-color);
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Left components */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
}

/* Brand Health Widget */
.brandSet {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.image p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #0091C9;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.9rem;
}

.image_content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.image_content #BP {
    font-weight: 600;
    color: var(--text-primary);
}

/* Right components */
.navbar-right {
    display: flex;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification img {
    width: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.notification img:hover {
    transform: scale(1.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-color);
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dropdown-icon {
    width: 16px;
    transition: transform 0.3s ease;
}

/* Logout Dropdown */
.logout-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    min-width: 150px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    z-index: 101;
}

.show_logout {
    display: flex !important;
    animation: fadeIn 0.2s ease-in-out;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-link:hover {
    background-color: #fee;
    color: var(--error-color);
}

.login-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LANDING PAGE NAVBAR STYLES
   ======================================== */

.navbar-landing {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 145, 201, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Section */
.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #0091C9;
    object-fit: cover;
}

.app-title-landing {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-title-landing h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0091C9;
    margin: 0;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0091C9, #00b4d8);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #0091C9;
}

.nav-link:hover::after {
    width: 100%;
}

/* Auth Buttons - Landing */
.auth-buttons-landing {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-landing {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-login {
    color: #0091C9;
    background: transparent;
    border: 2px solid #0091C9;
}

.btn-login:hover {
    background: rgba(0, 145, 201, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 145, 201, 0.2);
}

.btn-signup {
    color: white;
    background: linear-gradient(135deg, #0091C9 0%, #00b4d8 100%);
    box-shadow: 0 4px 15px rgba(0, 145, 201, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 145, 201, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
    }

    .app-title h1 {
        font-size: 1rem;
    }

    .mobile-hidden {
        display: none !important;
    }

    .brandSet {
        display: none;
    }

    .user-profile {
        padding: 4px;
        background: transparent;
        border: none;
    }

    .dropdown-icon {
        display: block;
        /* Keep arrow for interaction */
    }

    /* Landing Page Responsive */
    .navbar-landing {
        padding: 0 20px;
        height: 70px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .app-title-landing h1 {
        font-size: 1.2rem;
    }

    .app-subtitle {
        font-size: 0.65rem;
    }

    .navbar-center {
        display: none;
    }

    .auth-buttons-landing {
        gap: 10px;
    }

    .btn-landing {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .btn-login {
        display: none;
    }
}