/* ===== NAVBAR BASE ===== */
.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #f9fafb;
    font-family: 'Roboto', sans-serif;
}

/* ===== LOGO ===== */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #60a5fa;
    /* soft blue */
}

.logo span {
    color: #fbbf24;
    /* yellow accent */
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #f9fafb;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background-color: #374151;
    color: #60a5fa;
}

/* ===== SEARCH ===== */
.nav-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-search form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 500px;
}

.nav-search button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search button:hover {
    background: #1e40af;
}

/* ===== LOGOUT BUTTON ===== */
.btn-logout {
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0a84ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-search {
        order: 3;
        width: 100%;
    }

    .nav-search form {
        max-width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #f9f9f9;
        width: 200px;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        border-left: 1px solid #eee;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .btn-logout {
        color: #333;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-search {
        margin-top: 10px;
        justify-content: flex-start;
    }

    .nav-search form {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav-search input,
    .nav-search select,
    .nav-search button {
        width: 100%;
    }

    .nav-links {
        width: 100%;
        border-top: 1px solid #eee;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* search bar aligned left */
}

/* ===== SEARCH BAR ===== */
.nav-search {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-search form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 500px;
}

.nav-search button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search button:hover {
    background: #1e40af;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-search {
        width: 100%;
    }

    .nav-search form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-search {
        width: 100%;
        margin-top: 10px;
    }

    .nav-search form {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav-search input,
    .nav-search select,
    .nav-search button {
        width: 100%;
    }
}

/* ===== NAVBAR BASE ===== */
.main-header {
    width: 100%;
    background: #111827;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== NAVBAR CONTENT ===== */
.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #f9fafb;
    font-family: 'Roboto', sans-serif;
}

/* ===== FLOATING SEARCH BAR ===== */
.nav-search-wrapper {
    width: 100%;
    background: #1e3a8a;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 999;
}

.nav-search {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
}

.nav-search form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

.nav-search input,
.nav-search select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    flex: 1;
}

.nav-search button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search button:hover {
    background: #1e40af;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-search form {
        flex-direction: column;
        gap: 8px;
    }

    .nav-search input,
    .nav-search select,
    .nav-search button {
        width: 100%;
    }
}