        body {
            margin: 0;
            font-family: sans-serif;
            background: var(--bg);
            color: var(--text);
        }

        .container {
            padding: 15px;
            max-width: 800px;
            margin: auto;
        }

        .header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            height: 50px;
            flex-direction: column;
            align-items: center;
        }

        .header h1 {
            margin: 0;

        }

        .logo {
            width: 45px;
            height: 45px;
        }

        .main-card {
            border-radius: 15px;
            padding: 10px;
            text-align: center;
            background: #121a2b;
            color: #fff;
            margin-bottom: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .main-temp {
            font-size: 40px;
            font-weight: bold;
        }



        .row {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 10px;
        }

        .warnings-box {
            background-color: #ff4d4d;

            border-radius: 15px;
        }

        .warning-title {
            padding: 10px;
            font-size: 16px;
            text-align: center;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .warning-text {
            text-align: center;
            margin-bottom: 10px;
        }

        .card {
            flex: 1;
            background: var(--card);
            border-radius: 15px;
            padding: 12px;
            text-align: center;
        }

        .card img {
            width: 70px;
            height: 60px;
            padding: 0;

        }

        .forecast-box {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            overflow-y: auto;
            height: 200px;
              align-items: baseline;
        }

        .forecast-box p {
            margin: 3px;
        }

        .forecast-element {
            display: flex;
            flex-direction: column;
            min-width: 125px;
        }

        .forecast-time {
            font-size: 12px;
            height: 30px;
        }

        .forecast-desc {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .forecast-box .forecast-temp {
            margin-top: 10px;
            width: 50px;
        }
        
        .forecast-box small.desc{
            font-size: 0.7rem;
        }

             .chart-wrapper {
            background: var(--card);
            padding: 40px 10px;
            border-radius: 12px;
        }

        .chart-title {
            margin: 0 0 40px 0;
            text-align: center;
            color: var(--text);
            font-size: 20px;
        }

        /* Контейнер графика на CSS Grid */
        .bar-chart {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: 1fr;
            align-items: end;

            width: 100%;
            height: 200px;
            gap: 12px;
            padding: 10px;
            box-sizing: border-box;
            border-bottom: 2px solid #64748b;
        }

        /* Столбцы графика */
        .bar {
            background: linear-gradient(to top, #3b82f6, #60a5fa);
            height: calc(var(--value) * 1%);
            position: relative;
            border-radius: 4px 4px 0 0;
            transition: transform 0.2s;
        }

        .bar:hover {
            transform: scaleY(1.02);
            background: #2563eb;
        }

        /* Текст с температурой НАД столбцом */
        .bar::before {
            content: attr(data-value);
            position: absolute;
            top: -22px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 11px;
            font-weight: 600;
            color: var(--text);
        }

        /* Время ПОД столбцом */
        .bar::after {
          content: attr(data-label);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
        }

        /* Переопределяем градиенты для столбцов, чтобы они смотрелись гармонично */
        .bar.overcold {
            background: linear-gradient(to top, #0866ff, #3b82f6);
        }

        .bar.overheat {
            background: linear-gradient(to top, #ff4d4d, #ff7b7b);
        }

        .bar.normal {
            background: linear-gradient(to top, #50950b, #5ba81c);
        }


        .overheat {
            background: radial-gradient(circle,#ff4d4d , #ff7b7b);
        }

        .overcold {
            background: radial-gradient(circle,#0866ff,#3b82f6);
        }

        .normal {
            background: radial-gradient(circle,#50950b , #5ba81c);
        }

        
        .placeholder {
            text-align: center;
            align-content: center;
            width: 100%;
            height: 100px;
            color: gray;
        }