header {
    background: #ffffff;
    border: 1px solid #d8dee6;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
}
.logo a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: clamp(138px, 14vw, 184px);
    height: auto;
    max-height: 50px;
    object-fit: contain;
    object-position: left center;
}


.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 38px; */
    position: relative;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #0b5678;
    letter-spacing: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 42px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav a {
    text-decoration: none;
    color: #66778d;
    font-size: 16px;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav a:hover {
    color: #0b5678;
    text-decoration: none;
    color: inherit;
}

.actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-link {
    border: 0;
    background: transparent;
    text-decoration: none;
    color: #0b5678;
    font-size: 16px;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
}

.login-link:hover {
    opacity: 0.8;
}

.profile-btn {
    text-decoration: none;
    background: #004b6e;
    color: #ffffff;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    transition: 0.25s ease;
}

.header-dashboard-btn {
    gap: 9px;
    white-space: nowrap;
}

.header-dashboard-btn i {
    font-size: 15px;
}

.profile-btn:hover {
    background: #003c58;
}

.profile-menu {
    position: relative;
}

.profile-avatar-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #004b6e;
    color: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 75, 110, 0.18);
    cursor: pointer;
}

.profile-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-btn span {
    font-weight: 800;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 30;
    width: 220px;
    padding: 12px;
    border: 1px solid rgba(216, 222, 230, 0.85);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.22s ease;
}

.profile-menu.is-open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown strong {
    display: block;
    padding: 8px 10px 10px;
    color: #202833;
    font-size: 15px;
}

.profile-dropdown a,
.profile-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #66778d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 0 10px;
    cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: rgba(0, 75, 110, 0.08);
    color: #0b5678;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #0b5678;
    cursor: pointer;
    line-height: 1;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.menu-toggle i {
    font-size: 22px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #e7edf3;
    padding: 0 24px 20px;
}

.mobile-menu a {
    text-decoration: none;
    color: #66778d;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.mobile-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #66778d;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
}

.mobile-user-menu {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.mobile-user-menu span {
    color: #202833;
    font-size: 14px;
    font-weight: 800;
    padding: 0 2px;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #004b6e;
    color: #ffffff;
    text-align: left;
    border-radius: 10px;
    margin-top: 0;
    padding: 13px 18px;
    border-bottom: 0;
    font-weight: 800;
}

.mobile-menu .mobile-profile i,
.mobile-menu .mobile-logout i {
    width: 18px;
    text-align: center;
}

.mobile-menu .mobile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f5f9;
    color: #0b5678;
    text-align: center;
    border-radius: 10px;
    margin-top: 10px;
    padding: 13px 18px;
    font-weight: 700;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 991px) {
    .navbar {
        padding: 0 22px;
    }

    .nav,
    .actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .logo {
        font-size: 21px;
    }

    .logo img {
        width: 152px;
        max-height: 42px;
    }
}

@media (max-width: 575px) {
    body {
        padding: 10px;
    }

    .navbar {
        min-height: 68px;
        padding: 0 16px;
    }

    .logo {
        font-size: 19px;
    }

    .logo img {
        width: 136px;
        max-height: 38px;
    }

    .mobile-menu {
        padding: 0 16px 16px;
    }
}
