* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.last-updated {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.connection-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 10px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.connection-status.offline {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.metric-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.metric-details {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #FF9800, #FFC107);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #F44336, #E91E63);
}

.temp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.temp-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.temp-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.temp-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

.icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #F44336;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.unavailable {
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
