:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
    --healthy-color: #28a745;
    --unhealthy-color: #dc3545;
    --warning-color: #ffc107;
}

@media (prefers-color-scheme: dark) {
    :root {
--bg-color: #1a1a1a;
--text-color: #ffffff;
--card-bg: #2d2d2d;
--border-color: #404040;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.last-updated {
    display: block;
}
.status-table {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 3rem 2rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.system-title {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

.widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    display: flex;
    align-items: center;
}

.widget-logo {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.widget-content {
    flex-grow: 1;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-title {
    font-weight: 600;
    margin: 0;
}

.status-icon {
    font-size: 2.5rem;
}

.widget-data {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.healthy { color: var(--healthy-color); }
.unhealthy { color: var(--unhealthy-color); }
.warning { color: var(--warning-color); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message {
    text-align: center;
    color: var(--unhealthy-color);
    padding: 2rem;
}

.widget:last-child:nth-child(odd) {
    grid-column: 1;
}

.refresh-timer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.status-image {
    width: 125px;
    height: 125px;
    object-fit: contain;
    position: absolute;
    top: 2rem;
    transform: translateY(-50%);
    border-radius: 12px;
}

.status-image-left {
    left: 0;
}

.status-image-right {
    right: 0;
}
