/* --- Basic Reset & Fonts --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Layout --- */
header, main, footer {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    font-weight: 600;
}

header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

main {
    flex-grow: 1;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #999;
}

footer a {
    color: #3498db;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* --- Status Boxes --- */
.status-overall {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-operational {
    background-color: #e6f7ed;
    border-color: #b7ebc9;
}

.status-operational h2 {
    color: #1d643b;
    font-size: 1.8rem;
    margin-top: 10px;
}

.status-icon {
    font-size: 2rem;
    line-height: 1;
    color: #27ae60;
}

.last-updated {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

/* --- Components List --- */
.components {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.components h3 {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.2rem;
    color: #34495e;
}

.component {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.component:last-child {
    border-bottom: none;
}

.component-name {
    font-weight: 500;
    color: #555;
}

.component-status {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Status Colors */
.status-ok {
    color: #27ae60;
    background-color: #eaf8f1;
}

.status-maintenance {
    color: #f39c12;
    background-color: #fef8e7;
}

.status-outage {
    color: #e74c3c;
    background-color: #fceeee;
}