﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

header {
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.subtitle {
    opacity: 0.8;
    font-size: 1.1em;
}

.sensor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

.sensor-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
}

.sensor-card:hover {
    transform: translateY(-5px);
}

.sensor-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.sensor-card h2 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.sensor-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.sensor-unit {
    color: #6c757d;
    font-size: 1.1em;
}

.info-panel {
    background: #e9ecef;
    padding: 20px;
    margin: 0 30px 30px;
    border-radius: 10px;
    text-align: center;
}

.last-update, .location {
    margin-bottom: 10px;
    color: #495057;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Loading animation */
.sensor-value.loading {
    color: #6c757d;
}

.sensor-value.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 33% { content: '.'; }
    34%, 66% { content: '..'; }
    67%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 600px) {
    .sensor-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .info-panel {
        margin: 0 20px 20px;
    }
}