/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1003;
    background: var(--jfp-navy);
    border-bottom: none;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .header {
    background: #ffffff;
    border-bottom: 1px solid rgba(14, 20, 62, 0.1);
    box-shadow: 0 2px 8px rgba(14, 20, 62, 0.08);
}

[data-theme="dark"] .header {
    background: var(--jfp-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-brand img {
    height: 44px;
    width: auto;
}

/* Badge logo visibility */
.header-logo {
    transition: all 0.3s ease;
}

/* Light mode: add navy background circle behind badge for contrast */
[data-theme="light"] .header-brand {
    background: var(--jfp-navy);
    border-radius: 8px;
    padding: 4px 8px;
}

/* Dark mode: transparent background, badge shows naturally */
[data-theme="dark"] .header-brand {
    background: transparent;
    padding: 4px 8px;
}

.header-greeting {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    white-space: nowrap;
}

.header-greeting .assistant-name {
    font-weight: 700;
    color: var(--accent);
}

[data-theme="light"] .header-greeting {
    color: #0e143e !important;
}

/* Hide greeting on very small screens */
@media (max-width: 480px) {
    .header-greeting {
        display: none;
    }
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--accent-cta);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
}

.theme-toggle input {
    display: none;
}

.theme-toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle label:hover {
    background: var(--accent-cta);
    color: white;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    font-size: 18px;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
