body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    background: #12375A;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ── NAVBAR ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}

/* ── LOGO ── */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-logo img {
    width: 60px;
    height: 60px;
}

.header-logo span {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* ── DESKTOP NAV ── */
.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* ── LOGOUT BUTTON ── */
.nav-item.logout-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.nav-item.logout-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.6);
}

.nav-item.logout-btn i {
    font-size: 18px;
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* ── MOBILE MENU ── */
.mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: #0e2e4a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
    max-height: 500px;
    padding: 8px 0 14px;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    border-left: 3px solid white;
    padding-left: 27px;
}

/* ── LOGOUT BUTTON IN MOBILE ── */
.mobile-nav-item.logout-mobile {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
}

.mobile-nav-item.logout-mobile:hover {
    background: rgba(231, 76, 60, 0.1);
}

.mobile-nav-item.logout-mobile i {
    font-size: 18px;
}

/* ── RESPONSIVE ── */
@media screen and (max-width: 950px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .navbar {
        padding: 12px 20px;
    }
}