.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-background-primary);
    box-shadow: none;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1000;
    max-height: 70px;
}

.header-actions {
    display: flex;
    align-items: center;
    padding-right: 10px;
    position: relative;
}

body.dark-mode .header-container {
    background-color: #212934;
}

body:not(.dark-mode) .header-container {
    background-color: #fffce9;
}

.header-container .banner {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0;
    padding-bottom: 0;
    height: 70px;
    max-height: 70px;
    flex-shrink: 0;
}

.header-container .banner img {
    max-height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.navigation {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
    flex-wrap: nowrap;
    min-width: 0;
    white-space: nowrap;
    max-width: 100vw;
    overflow-x: auto;
    scrollbar-width: thin;
}

.navigation ul li {
    margin-right: 0;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.navigation ul li a {
    color: var(--color-neutral-gray700);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}


.navigation ul li a.active {
    color: var(--color-primary-500);
    text-decoration: underline;
    text-decoration-color: var(--color-primary-500);
    font-weight: var(--font-weight-bold);
}

body.dark-mode .navigation ul li a.active {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #ffffff;
    font-weight: var(--font-weight-bold);
}

.navigation ul li a:hover {
    color: var(--color-primary-500);
    text-decoration: underline;
    text-decoration-color: var(--color-primary-500);
}

.navigation ul li:not(:last-child)::after {
    content: "\2022";
    margin-left: var(--spacing-lg);
    color: var(--color-neutral-gray500);
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-lg);
    padding-right: 0;
    position: relative;
    flex-shrink: 0;
}

#hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    z-index: 10;
    flex-shrink: 0;
}

.hamburger-bar {
    width: 28px;
    height: 4px;
    background: #495057;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

body.dark-mode .hamburger-bar {
    background: #e9ecef;
}

.dropdown-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1001;
    min-width: 180px;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

body.dark-mode .dropdown-nav {
    background: #23272a;
}

.dropdown-nav.open {
    transform: translateX(0%);
}

.dropdown-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-nav ul li {
    border-bottom: 1px solid #e9ecef;
}

body.dark-mode .dropdown-nav ul li {
    border-bottom: 1px solid #343a40;
}

.dropdown-nav ul li:last-child {
    border-bottom: none;
}

.dropdown-nav ul li a {
    display: block;
    padding: 14px 24px;
    color: #495057;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

body.dark-mode .dropdown-nav ul li a {
    color: #e9ecef;
}

.dropdown-nav ul li a:hover {
    background: #f8f9fa;
}

body.dark-mode .dropdown-nav ul li a:hover {
    background: #343a40;
}

#theme-toggle {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.theme-toggle-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 74px;
    height: 36px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: linear-gradient(90deg, #ffb6b9 0%, #fcd34d 100%);
    transition: background 0.4s;
}

body.dark-mode .theme-toggle-track {
    background: linear-gradient(90deg, #3a4ed7 0%, #1e2a78 100%);
}

.theme-toggle-thumb {
    position: absolute;
    left: 42px;
    top: 4px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: left 0.4s cubic-bezier(.4,2,.6,1), background 0.3s;
    z-index: 2;
}

body.dark-mode .theme-toggle-track .theme-toggle-thumb {
    left: 4px;
    background: #23272a;
}

.theme-toggle-suncloud, .theme-toggle-moonstars {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    opacity: 1;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.theme-toggle-suncloud {
    left: 4px;
    right: auto;
}

.theme-toggle-moonstars {
    right: 4px;
    left: auto;
}

body.dark-mode .theme-toggle-suncloud {
    opacity: 0;
}

body.dark-mode .theme-toggle-moonstars {
    opacity: 1;
}

body:not(.dark-mode) .theme-toggle-suncloud {
    opacity: 1;
}

body:not(.dark-mode) .theme-toggle-moonstars {
    opacity: 0;
} 