        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }
        body {
            background: #f5f7fa;
            padding: 15px;
            color: #333;
            line-height: 1.5;
        }
        .container {
            max-width: 100%;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        header {
            background: #f8f9fa;
            padding: 20px 15px;
            text-align: center;
            position: relative;
            border-bottom: 1px solid #eaeaea;
        }
        h1 {
            font-size: 24px;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        .current-temps {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        .data-card {
            flex: 1;
            min-width: 120px;
            max-width: 160px;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            box-shadow: 0 3px 6px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .data-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0,0,0,0.15);
        }
        .data-card.active {
            box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
        }
        .temp-card.inside {
            background: #e3f2fd; /* Слегка синяя для лоджии */
            color: #333;
        }
        .temp-card.outside {
            background: #fdedec; /* Слегка красная для улицы */
            color: #333;
        }
        .humidity-card {
            background: #e3f2fd;
        }
        .pressure-card {
            background: #e8f5e9;
        }
        .wind-card {
            background: #e8eaf6; /* Слегка фиолетовый для ветра */
        }
        .wind-direction-card {
            background: #f3e5f5; /* Слегка розовый для направления */
        }
        .temp-label, .data-label {
            font-size: 14px;
            margin-bottom: 5px;
        }
        .temp-value, .data-value {
            font-size: 24px;
            font-weight: bold;
            margin: 5px 0;
        }
        .inside-temp { color: #2980b9; }
        .outside-temp { color: #c0392b; }
        .humidity-value { color: #2196f3; }
        .pressure-value { color: #4caf50; }
        .wind-speed-value { color: #673ab7; }
        .wind-direction-value { color: #9c27b0; }
        .controls {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            padding: 15px 10px;
            background: #3a3f4b;
        }
        .time-btn {
            padding: 8px 14px;
            border: none;
            border-radius: 18px;
            background: #4a5261;
            color: #e0e0e0;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 13px;
            flex: 1;
            min-width: 80px;
            max-width: 120px;
            white-space: nowrap;
        }
        .time-btn:hover {
            background: #5a6374;
        }
        .time-btn.active {
            background: #5dade2;
            color: white;
            font-weight: bold;
        }
        .chart-container {
            height: 50vh;
            min-height: 350px;
            position: relative;
            padding: 15px;
            background: white;
        }
        .footer {
            text-align: center;
            padding: 12px;
            background: #f8f9fa;
            color: #6c757d;
            font-size: 13px;
        }
        .error-message {
            color: red;
            text-align: center;
            padding: 20px;
            font-size: 16px;
        }
        @media (max-width: 768px) {
            body { padding: 10px; }
            header { padding: 15px 10px; }
            h1 { font-size: 20px; }
            .data-card { min-width: 45%; max-width: 45%; padding: 10px; }
            .temp-value, .data-value { font-size: 20px; }
            .temp-label, .data-label { font-size: 12px; }
            .controls { gap: 5px; padding: 10px 5px; }
            .time-btn { padding: 6px 8px; font-size: 12px; min-width: 60px; }
            .chart-container { height: 55vh; min-height: 300px; padding: 10px; }
        }
        @media (max-width: 480px) {
            .current-temps { gap: 8px; }
            .data-card { min-width: 45%; max-width: 45%; }
            .time-btn { min-width: 23%; font-size: 11px; padding: 5px; }
            .chart-container { min-height: 250px; }
        }
/* Добавьте эти стили в ваш CSS файл */
.weather-forecast-card {
    display: flex;
    width: calc(100% - 30px);
    max-width: 800px;
    margin: 15px auto;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.weather-forecast-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.weather-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-width: 100px;
}

.forecast-details {
    flex: 2;
    padding: 10px 15px;
}

.forecast-details h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
}

.forecast-text {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
}

/* Анимации для иконок погоды */
.weather-sun {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
    position: relative;
}

.weather-sun::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, transparent 40%, rgba(255, 215, 0, 0.3) 70%);
    border-radius: 50%;
    opacity: 0.6;
    animation: sunGlow 3s infinite alternate;
}

.weather-cloud {
    position: relative;
    width: 70px;
    height: 40px;
    background: #ECF0F1;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.weather-cloud::before, 
.weather-cloud::after {
    content: "";
    position: absolute;
    background: #ECF0F1;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.weather-cloud::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.weather-cloud::after {
    width: 20px;
    height: 20px;
    top: -10px;
    right: 10px;
}

.weather-rain {
    position: relative;
    width: 70px;
    height: 50px;
}

.weather-rain .weather-cloud {
    position: absolute;
    top: 0;
    left: 0;
}

.weather-rain .drop {
    position: absolute;
    width: 2px;
    height: 6px;
    background: #7FB3D5;
    border-radius: 0 0 3px 3px;
    animation: rainFall 1s infinite linear;
}

.weather-snow {
    position: relative;
    width: 70px;
    height: 50px;
}

.weather-snow .weather-cloud {
    position: absolute;
    top: 0;
    left: 0;
}

.weather-snow .flake {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white;
    animation: snowFall 3s infinite linear;
}

/* Анимации */
@keyframes sunGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes rainFall {
    0% { transform: translateY(0) scaleY(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(25px) scaleY(0.5); opacity: 0; }
}

@keyframes snowFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(25px) rotate(360deg); opacity: 0; }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .weather-forecast-card {
        flex-direction: column;
        padding: 12px;
        margin: 10px auto;
    }
    
    .weather-icon {
        margin-bottom: 10px;
        min-width: auto;
    }
    
    .forecast-details h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .forecast-text {
        font-size: 14px;
    }
    
    .weather-sun {
        width: 50px;
        height: 50px;
    }
    
    .weather-cloud {
        width: 60px;
        height: 35px;
    }
    
    .weather-cloud::before {
        width: 25px;
        height: 25px;
        top: -12px;
    }
    
    .weather-cloud::after {
        width: 15px;
        height: 15px;
        top: -8px;
    }
}

@media (max-width: 480px) {
    .weather-forecast-card {
        width: calc(100% - 20px);
        padding: 10px;
    }
    
    .forecast-details h3 {
        font-size: 15px;
    }
    
    .forecast-text {
        font-size: 13px;
    }
}


