
/* HEADER IMPROVEMENTS */
.brand-text-container {
    display: flex;
    flex-direction: column;
    margin-left: -2px;
    cursor: pointer;
}

.brand-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    /* Shimmering Gold Gradient */
    background: linear-gradient(135deg,
            var(--gold-dark) 0%,
            var(--gold) 25%,
            var(--gold-light) 50%,
            var(--gold) 75%,
            var(--gold-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-origin: left top;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        background-position 0.8s ease;
}

.brand-author {
    display: block;
    font-family: var(--font-main);
    font-size: 0.65em;
    font-weight: 400;
    line-height: 1.2;
    /* Increased for descenders */
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: rgba(244, 228, 176, 0.45);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-2px);
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        letter-spacing 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-brand:hover .brand-title {
    transform: scale(0.82);
    background-position: right center;
}

.header-brand:hover .brand-author {
    max-height: 26px;
    /* Headroom for descenders */
    opacity: 1;
    transform: translateY(-5px);
    /* Pull up to close the gap */
    letter-spacing: 1.8px;
    /* Elegant tracking expansion */
    color: rgba(244, 228, 176, 0.7);
}

.header-indicators {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 38px;
    min-width: 140px;
    /* Ensure valid width */
    justify-content: center;
}

.history-indicator {
    min-width: 400px;
    /* Wider for history log */
    justify-content: flex-start;
}

.header-indicator:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.indicator-icon {
    width: 16px;
    height: 16px;
    stroke: rgba(212, 175, 55, 0.7);
    fill: none;
    stroke-width: 2;
}

.indicator-label {
    font-family: var(--font-main);
    font-size: 0.65em;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: auto;
    /* Push value to right */
}

.indicator-value {
    font-family: var(--font-main);
    font-size: 0.85em;
    color: var(--gold-light);
    font-weight: 500;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #2ECC71;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
    transition: background 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
    margin-right: 8px;
    flex-shrink: 0;
}

.status-dot.animating {
    animation: pulse-dot 1.5s infinite ease-in-out;
}

/* Adjust global actions slightly */
.global-actions {
    gap: 10px;
}

.header-btn {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.header-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-btn.primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-weight: 600;
}

.header-btn.primary:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15));
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

