/* Velora Health Status Page Styles */
:root {
    --bg-dark: #0a0c10;
    --bg-card: #12161f;
    --bg-card-hover: #181d29;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(120, 119, 198, 0.2);
    
    --text-primary: #f0f4fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Status Colors */
    --color-op: #10b981;
    --color-op-glow: rgba(16, 185, 129, 0.3);
    --color-deg: #f59e0b;
    --color-deg-glow: rgba(245, 158, 11, 0.3);
    --color-out: #ef4444;
    --color-out-glow: rgba(239, 68, 68, 0.3);
    --color-info: #6366f1;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding: 10px 20px;
    font-size: 13.5px;
    text-align: center;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.disclaimer-badge {
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.disclaimer-text strong {
    color: #f59e0b;
}

/* Topbar Header */
.topbar {
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon-svg {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(226, 175, 0, 0.4));
    transition: var(--transition);
}

.brand:hover .brand-icon-svg {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(226, 175, 0, 0.7));
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-logo-svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.3px;
}

.brand-highlight {
    color: #6366f1;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.api-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.api-link:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* Hero */
.hero {
    margin-top: 35px;
    margin-bottom: 25px;
}

.eyebrow {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #6366f1;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Overall Status Banner */
.overall-wrapper {
    margin-bottom: 30px;
}

.overall {
    border-radius: var(--radius-md);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.overall-wrapper .status-operational {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(18, 22, 31, 0.95) 60%);
}

.overall-wrapper .status-degraded {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(18, 22, 31, 0.95) 60%);
}

.overall-wrapper .status-outage {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(18, 22, 31, 0.95) 60%);
}

.status-pulse-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-operational .pulse {
    background-color: var(--color-op);
    box-shadow: 0 0 0 0 var(--color-op-glow);
    animation: pulse-green 2s infinite;
}

.status-degraded .pulse {
    background-color: var(--color-deg);
    box-shadow: 0 0 0 0 var(--color-deg-glow);
    animation: pulse-amber 2s infinite;
}

.status-outage .pulse {
    background-color: var(--color-out);
    box-shadow: 0 0 0 0 var(--color-out-glow);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.status-info {
    flex-grow: 1;
}

.status-info h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-info p {
    color: var(--text-secondary);
    font-size: 13.5px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.refresh-btn.spinning svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.range-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 4px;
}

.time-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.time-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.time-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.json-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.json-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Systems Section */
.systems-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 45px;
}

.group-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 25px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.group-title h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.group-desc {
    font-size: 12.5px;
    color: var(--text-muted);
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.component-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: var(--transition);
}

.component-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comp-title-box {
    display: flex;
    flex-direction: column;
}

.comp-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.comp-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.comp-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-badge {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
}

.status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.operational {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-badge.degraded {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-badge.outage {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Timeline bars */
.comp-timeline-wrapper {
    margin-top: 14px;
}

.timeline-bars {
    display: flex;
    gap: 3px;
    height: 28px;
    align-items: stretch;
    width: 100%;
}

.time-bar {
    flex: 1;
    background: var(--color-op);
    border-radius: 2px;
    opacity: 0.85;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.time-bar:hover {
    opacity: 1;
    transform: scaleY(1.15);
}

.time-bar.degraded {
    background: var(--color-deg);
}

.time-bar.outage {
    background: var(--color-out);
}

.time-bar.no-data {
    background: rgba(255, 255, 255, 0.08);
}

.timeline-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Tooltip */
.status-tooltip {
    position: fixed;
    pointer-events: none;
    background: #1e2430;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    z-index: 1000;
    display: none;
    color: var(--text-primary);
}

.status-tooltip .tt-time {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.status-tooltip .tt-status {
    font-weight: 700;
    text-transform: capitalize;
}

/* Lower Section */
.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .lower-grid {
        grid-template-columns: 1fr;
    }
}

.lower-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 25px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 25px 10px;
}

.empty-icon {
    font-size: 28px;
    color: var(--color-op);
    margin-bottom: 8px;
}

.empty-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.empty-desc {
    color: var(--text-muted);
    font-size: 13px;
}

.about-notice p {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-bottom: 12px;
}

.disclaimer-callout {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.disclaimer-callout p {
    margin-bottom: 0;
    font-size: 12.5px;
    color: #e2e8f0;
}

/* Footer */
.footer {
    background: #07090c;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 35px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #6366f1;
}

.loading-spinner-box {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
