/* Maintenance Mode Banner
 * Shown at the top of the SPA when maintenance is scheduled or active.
 * Uses CSS custom properties from base.css for theme compatibility.
 */

.maintenance-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000; /* Above everything including modals */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #dc2626;
    color: white;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.maintenance-banner--admin {
    background: #2563eb;
}

.maintenance-banner__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.maintenance-banner__message {
    flex: 1;
}

.maintenance-banner__admin-note {
    font-weight: 400;
    opacity: 0.8;
    font-size: 12px;
}

.maintenance-banner__countdown {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

/* Push page content down when banner is visible */
body.has-maintenance-banner {
    padding-top: 40px;
}

body.has-maintenance-banner .sidebar {
    top: 40px;
    height: calc(100vh - 40px);
}

/* Login page maintenance overlay */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-overlay__card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.maintenance-overlay__icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.maintenance-overlay__title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.maintenance-overlay__message {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.5;
}

.maintenance-overlay__eta {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.maintenance-overlay__eta strong {
    color: #374151;
}
