* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
}

/* Status Section - Mobile First */
.status-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.status-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.status-indicator {
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator.online {
    background-color: #d4edda;
    color: #155724;
    border: 3px solid #c3e6cb;
}

.status-indicator.offline {
    background-color: #f8d7da;
    color: #721c24;
    border: 3px solid #f5c6cb;
}

.status-indicator.checking {
    background-color: #fff3cd;
    color: #856404;
    border: 3px solid #ffeaa7;
}

/* Charts Section - Mobile First */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.chart-wrapper:active {
    transform: scale(0.98);
}

.chart-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
}

.chart-overlay-text {
    text-align: center;
    padding: 20px;
}

/* Modal - Mobile Optimized */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: white;
    margin: 0;
    padding: 24px;
    border-radius: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.close:active {
    color: #333;
    background: rgba(255, 255, 255, 1);
}

.modal-content h2 {
    margin: 20px 0;
    color: #333;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.modal-chart-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 24px;
    }
    
    .status-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .charts-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 32px;
    }
    
    .status-card, .chart-container {
        padding: 32px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 32px;
        border-radius: 16px;
        width: 90%;
        max-width: 800px;
        height: auto;
        max-height: 90vh;
    }
    
    .chart-overlay {
        opacity: 0;
    }
    
    .chart-wrapper:hover .chart-overlay {
        opacity: 1;
    }
}

/* Large Mobile */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding: 20px;
    }
    
    .status-card, .chart-container {
        padding: 28px;
    }
    
    .status-card h3, .chart-container h3 {
        font-size: 22px;
    }
    
    .status-indicator {
        padding: 24px;
        font-size: 20px;
    }
} 