/* public/assets/css/navbar.css */

:root {
    --nav-height: 70px;
    --nav-bg: rgba(15, 23, 42, 0.7);
    --nav-blur: 15px;
    --nav-border: rgba(255, 255, 255, 0.1);
    --nav-text: #f8fafc;
    --nav-accent: #38bdf8;
}

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    z-index: 9999;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

body {
    padding-top: var(--nav-height);
}

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

.nav-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--nav-text);
    text-decoration: none;
    letter-spacing: 2px;
    background: linear-gradient(120deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--nav-accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--nav-text);
    opacity: 0.9;
}

.user-greeting strong {
    color: var(--nav-accent);
}

.btn-logout-nav {
    text-decoration: none;
    color: var(--nav-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-logout-nav:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Responsività Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    .nav-links {
        display: none; /* In futuro potremmo aggiungere un menu hamburger */
    }
    .user-greeting {
        display: none;
    }
}
