:root {
    --header-height: 65px;
    --color-header-bg: var(--color-blue-50);
    --color-header-border: var(--color-blue-50-dark-1);
    --color-header-hover: var(--color-blue-40);
    --color-header-text: #fff;
    --color-accent: var(--color-accent-50);
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-header-bg);
    border-bottom: 1px solid var(--color-header-border);
    color: var(--color-header-text);
}

.header__inner {
    margin: 0 auto;
    padding: 0.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__branding .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-header-text);
}

.logo__image {
    height: 36px;
    margin-right: 0.5rem;
}

.logo__text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.header__nav {
    display: flex;
}

.nav__list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav__list li {
    display: flex;
    align-items: center;
}

.nav__list li a,
.notification-toggle-button {
    text-decoration: none;
    color: var(--color-header-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid transparent;
    border-radius: 4px;
    border-bottom: 4px solid var(--color-header-bg);
    transition: background-color 0.3s ease, border-bottom 0.3s ease, color 0.3s ease;
    background: none;
    cursor: pointer;
}

.nav__list li a:hover,
.notification-toggle-button:hover {
    background-color: var(--color-header-hover);
    border-bottom: 4px solid #fff;
    color: #fff;
}

.nav__list li a.active,
.notification-toggle-button.active {
    border-bottom: 4px solid #fff;
    color: #fff;
}

.nav__list li i {
    font-size: 1.25rem;
    color: var(--color-header-text);
}

.logout {
    color: #f87171;
    font-weight: bold;
}

.icon-list .notification-toggle-button {
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    cursor: pointer;
    border-bottom: 4px solid var(--color-blue-50);
    border-radius: 4px;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.icon-list .notification-toggle-button:hover {
    background-color: var(--color-blue-40);
    border-bottom: 4px solid white;
}

.icon-list .notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-50);
    border-radius: 50%;
}

.icon-list {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.icon-list li {
    display: flex;
    align-items: center;
}

.icon-list a,
.icon-list .notification-toggle-button {
    padding: 0.5rem;
    font-size: 1.25rem;
    border-bottom: 4px solid var(--color-header-bg);
}

.icon-list a:hover,
.icon-list .notification-toggle-button:hover {
    background-color: var(--color-header-hover);
    border-bottom: 4px solid #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 18px;
    display: inline-block;
}

.bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.bar-top { top: 2px; }
.bar-middle { top: 8px; }
.bar-bottom { top: 14px; }

.menu-toggle.active .bar-top {
    top: 8px;
    transform: rotate(45deg);
}
.menu-toggle.active .bar-middle {
    opacity: 0;
}
.menu-toggle.active .bar-bottom {
    top: 8px;
    transform: rotate(-45deg);
}

@media (max-width: 795px) {
    .menu-toggle {
        display: block;
    }

    .header__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header__nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-blue-50);
    }

    .header__nav.open {
        display: flex;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
    }

    .nav__list li {
        width: 100%;
        text-align: center;
    }

    .nav__list li a {
        justify-content: center;
        width: 100%;
    }

    .icon-group {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .icon-list {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .icon-list a,
    .icon-list .notification-toggle-button {
        border-bottom: none;
        padding: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .header__nav {
        display: none;
    }

    .header__nav.open {
        display: flex;
    }
}
