/* === Header bar, status dot, login overlay === */

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Status dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
}

.status-dot.connected { background: #22c55e; }
.status-dot.error { background: #ef4444; }
.status-dot.connecting { animation: pulse 1s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Header icon buttons (panel toggles) */
.header-icon-btn {
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.header-icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Login overlay */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.login-overlay.visible {
    display: flex;
}

.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 280px;
}

.login-box h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.login-box input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.login-box button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    font-weight: 500;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.login-box button:hover { opacity: 0.9; }
.login-box button:disabled { opacity: 0.5; cursor: not-allowed; }

.login-error {
    color: #ef4444;
    font-size: 13px;
    min-height: 20px;
}
