.netatmo-weather-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Loading state */
.netatmo-loading {
    text-align: center;
    padding: 40px 20px;
}

.netatmo-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: netatmo-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes netatmo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.netatmo-loading p {
    color: #666;
    margin: 0;
}

/* Error state */
.netatmo-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
}

.netatmo-error-message {
    margin: 0;
}

/* Header */
.netatmo-header {
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.netatmo-station-name {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    color: #333;
}

.netatmo-timestamp {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Measurements */
.netatmo-measurements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 480px) {
    .netatmo-measurements {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .netatmo-measurements {
        grid-template-columns: repeat(3, 1fr);
    }
}

.netatmo-measurement {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.netatmo-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.netatmo-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.netatmo-value > span:first-child {
    font-size: 1.8em;
    font-weight: 600;
    color: #2c3e50;
}

.netatmo-unit {
    font-size: 1em;
    color: #7f8c8d;
    font-weight: 400;
}

.netatmo-wind-direction {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 479px) {
    .netatmo-weather-widget {
        margin: 10px;
        padding: 15px;
    }
    
    .netatmo-value > span:first-child {
        font-size: 1.5em;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .netatmo-weather-widget {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .netatmo-station-name {
        color: #ecf0f1;
    }
    
    .netatmo-timestamp,
    .netatmo-label {
        color: #95a5a6;
    }
    
    .netatmo-measurement {
        background: #34495e;
    }
    
    .netatmo-value > span:first-child {
        color: #ecf0f1;
    }
}
