.navbar {
    display: none !important;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 14px 0;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.navbar-brand {
    color: #0f172a !important;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    transition: transform 0.2s ease;
}

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

.navbar-logo {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 2px;
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-menu li {
    display: flex;
    align-items: center;
}

.navbar-menu li a {
    color: #475569;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-menu li a:hover {
    background-color: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
}

/* Logout button specific styling */
.navbar-menu li a.btn-logout {
    color: #dc3545;
    background-color: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.navbar-menu li a.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #bd2130;
}

/* Welcome User message */
.navbar-welcome {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #475569;
    margin-right: 15px;
    padding: 8px 0;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding-right: 15px;
    display: inline-flex;
    align-items: center;
}

.navbar-welcome strong {
    color: #4f46e5;
    font-weight: 700;
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    margin-left: 4px;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 850px) {
    .navbar-welcome {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.15rem;
    }
    
    .navbar-menu li a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0 !important;
    }
    .navbar-brand img {
        margin-right: 0 !important;
    }
}
