/* ===== NAVBAR ===== */
.nb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: 'DM Sans', sans-serif;
}

.nb-logo img {
    height: 32px;
    display: block;
}

/* ===== HAMBURGER ===== */
.nb-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.nb-hamburger:hover {
    border-color: #147b28;
}

.nb-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s;
}

.nb-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nb-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nb-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== OVERLAY ===== */
.nb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
    z-index: 40;
    pointer-events: none;
}

.nb-overlay.open {
    background: rgba(0, 0, 0, 0.25);
    pointer-events: all;
}

/* ===== DRAWER ===== */
.nb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    font-family: 'DM Sans', sans-serif;
}

.nb-drawer.open {
    transform: translateX(0);
}

/* HEADER DRAWER */
.nb-drawer-head {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1a3726;
}

.nb-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-close:hover {
    background: #f9fafb;
}

/* ===== NAV LINKS ===== */
.nb-nav {
    padding: 12px;
}

.nb-nav a {
    display: block;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nb-nav a:hover {
    background: #f0fdf4;
    color: #147b28;
}

/* ===== AUTH SECTION ===== */
.nb-auth {
    margin-top: auto;
    padding: 12px 12px 20px;
    border-top: 1px solid #f3f4f6;
}

.nb-btn-login {
    display: block;
    padding: 11px;
    border: 1.5px solid #1a3726;
    border-radius: 10px;
    text-align: center;
    color: #1a3726;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.nb-btn-login:hover {
    background: #f0fdf4;
}

.nb-btn-guest {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nb-btn-guest:hover {
    background: #f9fafb;
    color: #374151;
}


/* ===== AUTH BUTTONS ===== */

.nb-btn-login {
    display: block;
    padding: 11px;
    border: 1.5px solid #1a3726;
    border-radius: 10px;
    text-align: center;
    color: #fff;                    
    background: #1a3726;           
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.nb-btn-login:hover {
    background: #14512b;
    border-color: #14512b;
}

.nb-btn-primary {
    background: #147b28;
    border-color: #147b28;
    color: #fff;
}

.nb-btn-primary:hover {
    background: #0f6120;
    border-color: #0f6120;
}

.nb-btn-logout {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1.5px solid #dc2626;     
    border-radius: 10px;
    text-align: center;
    color: #dc2626;                  
    background: transparent;        
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.nb-btn-logout:hover {
    background: #fef2f2;             
}