/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* BODY FIX (for fixed header/footer) */
body {
    background: #f5f6fa;
    padding-top: 60px;
    padding-bottom: 70px;
}

/* ================= HEADER ================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0b4f59;
    color: white;
    padding: 0px 20px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

/* LOGO */
.logo-section {
    position: absolute;
    left: 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-section img {
    height: 90%;
    width: auto;
    object-fit: contain;
}

/* TITLE */
.nav-title {
    font-size: 20px;
    font-weight: bold;
}

/* RIGHT SIDE */
.nav-right {
    position: absolute;
    right: 15px;

    display: flex;
    align-items: center;
    gap: 10px;
}

/* USERNAME */
.username {
    font-size: 13px;
}

/* LOGOUT BUTTON */
.logout-btn {
    background: #e84118;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s;
}

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

/* ================= FOOTER ================= */

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #0b4f59;
    color: #cfd8dc;
    padding: 12px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 900px;
    font-size: 15px;
}

.footer .left {
    color: #d5fffc;
}

.footer .right a {
    color: white;
    text-decoration: none;
}

.footer .right a:hover {
    color: #14a098;
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .navbar {
        height: auto;
        padding: 8px 10px;
        flex-direction: column;
    }

    .logo-section {
        position: static;
        height: auto;
        margin-bottom: 5px;
    }

    .logo-section img {
        height: 35px;   /* 🔥 FIXED SIZE for mobile */
    }

    .nav-title {
        font-size: 16px;
        text-align: center;
    }

    .nav-right {
        position: static;
        margin-top: 5px;
    }

    .username {
        font-size: 11px;
    }

    .logout-btn {
        font-size: 10px;
        padding: 4px 8px;
    }

    body {
        padding-top: 90px;   /* 🔥 adjust for stacked header */
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}