:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.65);
    --border-color: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-domain: #58a6ff;
    --accent-ssl: #ab7df8;
    --accent-warning: #d29922;
    --accent-critical: #f85149;
    --accent-success: #3fb950;
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Atmosphere */
.background-blobs {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    filter: blur(120px);
}

.blob { position: absolute; border-radius: 50%; opacity: 0.15; }
.blob-1 { width: 600px; height: 600px; background: var(--accent-domain); top: -200px; left: -100px; animation: pulse 25s infinite; }
.blob-2 { width: 600px; height: 600px; background: var(--accent-ssl); bottom: -150px; right: -50px; animation: pulse 25s infinite reverse; }
.blob-3 { width: 400px; height: 400px; background: var(--accent-warning); top: 300px; right: 200px; animation: pulse 30s infinite alternate; }

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(80px, 40px); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom right, #ffffff, #8b949e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Table Design */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(255,255,255,0.02);
    padding: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th, td {
    padding: 1.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td {
    font-size: 0.95rem;
}

td strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
}

tr {
    transition: all 0.2s ease-out;
}

tr:last-child td { border-bottom: none; }

tr:hover {
    background: rgba(255, 255, 255, 0.04); 
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 12px;
}

tr:hover td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
tr:hover td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
tr:hover td { border-bottom-color: transparent; }

/* Status Layout (Top Right) */
.top-status {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 10;
}

.last-updated-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(63, 185, 80, 0.08);
    color: var(--accent-success);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(63, 185, 80, 0.2);
    letter-spacing: 0.02em;
}

.status-badge .pulse-dot {
    background: var(--accent-success);
    color: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
    animation: pulse-badge 2s infinite;
}

.loader {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Pulsing Dots for Statuses */
.status-pill {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    gap: 0.5rem;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.color-ok { color: var(--accent-success); }
.color-ok .pulse-dot { background: var(--accent-success); box-shadow: 0 0 6px var(--accent-success); }

.color-warning { color: var(--accent-warning); }
.color-warning .pulse-dot { background: var(--accent-warning); animation: pulse-warn 1.5s infinite; }

.color-critical { color: var(--accent-critical); }
.color-critical .pulse-dot { background: var(--accent-critical); animation: pulse-crit 1s infinite; }

@keyframes pulse-badge {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

@keyframes pulse-warn {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(210, 153, 34, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(210, 153, 34, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(210, 153, 34, 0); }
}

@keyframes pulse-crit {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(248, 81, 73, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(248, 81, 73, 0); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .container { padding: 2rem 1rem; }
}
