:root {
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --highlight-color: #FF813F;
    --secondary-color: #4a4a4a;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 3rem 0;
}

h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
    color: var(--highlight-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

main {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--secondary-color);
}

th {
    background-color: var(--secondary-color);
    color: var(--highlight-color);
    font-weight: 600;
}

.service-name {
    font-weight: 900;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.status-icon {
    margin-right: 5px;
}

.status-healthy {
    color: #4CAF50;
}

.status-trafficked {
    color: #FFC107;
}

.status-stressed {
    color: #FF5722;
}

.status-down {
    color: #9E9E9E;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    table {
        font-size: 14px;
    }
}

.loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--highlight-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
