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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333333;
    line-height: 1.6;
    padding: 20px 0;
}

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

header {
    background: #ffffff;
    color: #333333;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.logo-container {
    margin-bottom: 15px;
}

.logo-container img {
    width: 45px;
    height: 45px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-container img:hover {
    opacity: 1;
}

h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: #333333;
}

header p {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.status-summary {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-summary.degraded {
    background-color: #fff3cd;
    color: #856404;
}

.status-summary.down {
    background-color: #f8d7da;
    color: #721c24;
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #28a745;
    animation: pulse 2s infinite;
}

.status-indicator.degraded {
    background-color: #ffc107;
}

.status-indicator.down {
    background-color: #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.services {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.operational {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.degraded {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.down {
    background-color: #f8d7da;
    color: #721c24;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.operational {
    background-color: #28a745;
}

.status-dot.degraded {
    background-color: #ffc107;
}

.status-dot.down {
    background-color: #dc3545;
}

.last-updated {
    margin-top: 30px;
    text-align: center;
    color: #999999;
    font-size: 0.85rem;
    font-weight: 300;
}

.incidents {
    margin-top: 30px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.incidents h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.no-incidents {
    color: #6c757d;
    padding: 20px;
    text-align: center;
}

.uptime-graph {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

.uptime-graph h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333333;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.server-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    transition: background 0.2s ease;
    border: 1px solid #f0f0f0;
}

.server-section:hover {
    background: #f5f5f5;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.server-section h3 {
    font-size: 1.1rem;
    color: #333333;
    font-weight: 400;
}

.uptime-percentage {
    display: flex;
    align-items: center;
    gap: 10px;
}

.percentage-badge {
    background: #333333;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 400;
    font-size: 0.85rem;
}

.percentage-badge.perfect {
    background: #27ae60;
}

.percentage-badge.good {
    background: #52c41a;
}

.percentage-badge.warning {
    background: #faad14;
}

.percentage-badge.critical {
    background: #f5222d;
}

.monitored-days {
    color: #6c757d;
    font-size: 0.85rem;
}

.uptime-bars {
    display: flex;
    gap: 2px;
    height: 40px;
    margin-top: 15px;
    padding: 8px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.uptime-bar {
    flex: 1;
    background-color: #4caf50;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.uptime-bar:hover {
    transform: scaleY(1.1);
}

.uptime-bar:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.uptime-bar.maintenance {
    background-color: #faad14;
}

.uptime-bar.degraded {
    background-color: #fa8c16;
}

.uptime-bar.down {
    background-color: #f5222d;
}

.uptime-bar.noinfo {
    background-color: #d9d9d9;
    opacity: 0.4;
}

.uptime-legend {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    color: #6c757d;
    justify-content: center;
    flex-wrap: wrap;
}

.uptime-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.uptime-footnote {
    margin-top: 25px;
    padding: 18px;
    background: #fafafa;
    border-left: 2px solid #333333;
    border-radius: 4px;
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.6;
}

.uptime-footnote strong {
    color: #333333;
    font-weight: 500;
}

.no-data-message {
    padding: 50px;
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    background: #fafbfc;
    border-radius: 16px;
    margin: 25px 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 300;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .uptime-bars {
        gap: 1px;
    }
    
    .server-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}