/* AirStatus TentSauna - Main Styles */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --sauna-color: #e25c4a;      /* Red for sauna temperature */
    --water-color: #4ae2c5;      /* Blue for water bath */
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 8px;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.status-panel, .history {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.device-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.device-card:hover {
    transform: translateY(-5px);
}

.device-card.wide {
    min-width: 300px;
    max-width: 500px;
}

.device-card h3 {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.device-info {
    display: flex;
    justify-content: space-around;
}

.temperature-display, .humidity-display {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.temperature-display p, .humidity-display p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.temperature, .humidity {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 5px 0;
}

.temperature {
    color: var(--sauna-color);
}

.temperature.outside {
    color: var(--secondary-color);
}

.temperature.water {
    color: var(--water-color);
}

.humidity {
    color: var(--primary-color);
}

.last-update {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

.sensor-timestamp {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    border-top: 1px dashed #eee;
    padding-top: 5px;
}

#temperature-chart {
    width: 100%;
    height: 300px;
    margin-top: 20px;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .status-container {
        flex-direction: column;
        align-items: center;
    }
    
    .device-card {
        width: 100%;
        max-width: 100%;
    }
    
    .temperature, .humidity {
        font-size: 1.8rem;
    }
}