/* ============================================
   NAVBAR STYLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Color Variables */
:root {
    --color-primary: #2E8B57;
    --color-primary-light: #7BCB8A;
    --color-primary-dark: #1F5C3F;
    --color-dark: #263238;
    --color-light: #EEF4EF;
    --color-white: #F7FAF7;
}

.navbar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.15);
    font-family: 'Roboto', sans-serif;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* NAVBAR BRAND / LOGO */
.navbar-brand {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* NAVBAR MENU */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-light);
    transition: width 0.3s ease;
}

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

.navbar-link:hover {
    opacity: 0.9;
}

.navbar-link.active {
    opacity: 1;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 3px;
}

/* NAVBAR USER SECTION */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    color: white;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BUTTONS IN NAVBAR */
.btn-logout {
    background-color: #dc3545;
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn-logout:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-auth {
    color: white;
    padding: 8px 18px;
    border: 2px solid white;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
}

.btn-auth:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-auth-primary {
    background-color: var(--color-primary-light);
    color: white;
    border: 2px solid var(--color-primary-light);
}

.btn-auth-primary:hover {
    background-color: white;
    color: var(--color-primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
        width: 100%;
    }

    .navbar-link {
        font-size: 14px;
    }

    .navbar-link::after {
        display: none;
    }

    .navbar-user {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .user-info {
        display: none;
    }

    .btn-logout,
    .btn-auth {
        width: auto;
        text-align: center;
        font-size: 13px;
        padding: 6px 14px;
    }
}