/*
CHANGE LOG
File: /static/css/navbar.css
Document Type: CSS Stylesheet
Purpose: Top navigation bar with session status and professional styling
Main App: nsgia_app.py
Blueprint: N/A (static CSS)
Routes: Multiple (included in partials)
Context: Muted green professional navbar with unique class names
HTML Templates: navbar.html (partial)
Dependencies: None
Version History:
2025-09-01 v1.0 - Initial creation for navbar partial with unique class names
*/

/* === NAVBAR CONTAINER === */
.nsg-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    background: #2E7D32;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nsg-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* === NAVBAR LOGO === */
.nsg-navbar-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nsg-navbar-logo:hover {
    opacity: 0.9;
    color: white;
}

/* === NAVBAR RIGHT SECTION === */
.nsg-navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* === SESSION STATUS === */
.nsg-session-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.nsg-temp-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.nsg-user-email {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === NAVBAR BUTTONS === */
.nsg-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nsg-nav-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-height: 36px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Neutral buttons (Login, Logout) */
.nsg-nav-btn-neutral {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
}

.nsg-nav-btn-neutral:hover {
    background: #276a2a;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

/* Primary button (Register) */
.nsg-nav-btn-primary {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.nsg-nav-btn-primary:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    border-color: rgba(255,255,255,0.4);
}

/* Disabled state */
.nsg-nav-btn-disabled {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.nsg-nav-btn-disabled:hover {
    background: #5a6268;
    color: #6c757d;
}

/* === FOCUS STYLES === */
.nsg-nav-btn:focus,
.nsg-navbar-logo:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nsg-navbar-container {
        padding: 0 15px;
    }
    
    .nsg-navbar-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    
    .nsg-session-status {
        font-size: 0.8rem;
    }
    
    .nsg-user-email {
        max-width: 120px;
        font-size: 0.8rem;
    }
    
    .nsg-navbar-actions {
        gap: 6px;
    }
    
    .nsg-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-height: 32px;
    }
    
    .nsg-temp-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .nsg-navbar {
        height: auto;
        min-height: 60px;
    }
    
    .nsg-navbar-container {
        flex-direction: column;
        padding: 12px 15px;
        gap: 12px;
    }
    
    .nsg-navbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .nsg-user-email {
        max-width: 100px;
    }
}
