:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.temperature-unavailable {
    font-size: 2rem;
    font-weight: bold;
    color: #95a5a6;
    margin-bottom: 0.5rem;
    font-style: italic;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.temperature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    cursor: move;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.temperature-card.dragging {
    opacity: 0.5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.temperature-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.device-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.temperature-value {
    font-size: 4rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.timestamp {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    font-size: 1.5rem;
    color: #7f8c8d;
    grid-column: 1 / -1;
    padding: 2rem;
}

.nav-links {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
}

.device-selector {
    text-align: center;
    margin-bottom: 2rem;
}

.device-selector select {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 250px;
}

.chart-container {
    height: 400px;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
    margin-bottom: 3rem;
}

.chart-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.time-range-selector {
    text-align: center;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.time-range-selector label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

#months-value {
    color: var(--secondary-color);
}

#months-range {
    width: 100%;
    max-width: 600px;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

#months-range:hover {
    opacity: 1;
}

#months-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

#months-range::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    border: none;
}

#charts-container {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .temperature-value {
        font-size: 3.5rem;
    }
    .device-name {
        font-size: 1.25rem;
    }
    .chart-container {
        height: 300px;
    }
}

/* Wind data styling */
.wind-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

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

.wind-location {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.wind-description {
    font-style: italic;
    color: #7f8c8d;
}

.wind-separator {
    color: #95a5a6;
}

.wind-speed {
    font-size: 4rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 0.5rem;
}

.wind-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.wind-direction {
    color: #2980b9;
}

.wind-arrow {
    font-size: 2rem;
    display: inline-block;
    transform-origin: center;
}
