
       
       /* Контрольный комментарий */ 
       
       
       * {
            font-family: 'Inter', sans-serif;
        }
        
        body {
            min-height: 100vh; 
            overflow-x: hidden;
            background: #0a0e27; /* Тёмный фон на случай загрузки */
        }

        /* Статичные карточки: не поднимаются при наведении */
        .element-card.static-card,
        .element-card.static-card:hover {
            transform: none !important;
            cursor: default !important;
            /* Убираем усиление тени при наведении, если оно есть */
        }

        /* Анимация переливания для прогресс-бара воды */
        #ProgressWater {
            position: relative;
            overflow: hidden;
            transition: width 0.6s ease, background-color 0.4s ease;
        }

        #ProgressWater::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent
            );
            animation: water-shimmer 2.5s ease-in-out infinite;
        }

        @keyframes water-shimmer {
            0%   { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
         /* Класс для активного состояния индикатора */
        .led-active {
            border-color: rgba(245, 124, 14, 0.8) !important;
            transform: scale(1.3); /* Немного увеличиваем сам бейдж */
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистая анимация */
            z-index: 60; /* Поднимаем еще выше при активности */
        }
        
        /* Усиливаем тень и увеличиваем внутренний кружок в 2 раза */
        .led-active div {
            box-shadow: 0 0 25px currentColor, 0 0 50px currentColor !important;
            transform: scale(2); /* <--- УВЕЛИЧИВАЕМ КРУГЛЯШ В 2 РАЗА */
            transition: all 0.4s ease;
        }
        /* Стиль для неактивных карточек */
        .element-card.disabled {
            opacity: 0.4;
            filter: grayscale(80%);
            pointer-events: none; /* Запрещаем клик по карточке */
            cursor: default;
        }
        /* Фоновая картинка */
        .hero-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("/static/images/hero-bg.2e91d581179e.png");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 0;
        }

        /* Затемнение для читаемости */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(10, 20, 40, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(40, 10, 10, 0.6) 100%);
            z-index: 1;
            backdrop-filter: blur(2px);
        }

        /* Дополнительное свечение от элементов картинки */
        .glow-water {
            position: fixed;
            left: 0;
            top: 0;
            width: 40%;
            height: 100%;
            background: radial-gradient(ellipse at 20% 50%, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
            z-index: 1;
            pointer-events: none;
        }

        .glow-fire {
            position: fixed;
            right: 0;
            top: 0;
            width: 40%;
            height: 100%;
            background: radial-gradient(ellipse at 80% 50%, rgba(244, 162, 97, 0.15) 0%, transparent 70%);
            z-index: 1;
            pointer-events: none;
        }

        .glass-panel {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .element-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 24px;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border-left: 4px solid;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .element-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            background: rgba(255, 255, 255, 0.15);
        }

        /* Цвета под стиль картинки */
        .element-card.water { 
            border-left-color: #4a90e2; 
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        }
        .element-card.water:hover {
            box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3);
        }

        .element-card.earth { 
            border-left-color: #d4a373; 
            background: linear-gradient(135deg, rgba(212, 163, 115, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        }
        .element-card.earth:hover {
            box-shadow: 0 20px 60px rgba(212, 163, 115, 0.3);
        }

        .element-card.fire { 
            border-left-color: #f4a261; 
            background: linear-gradient(135deg, rgba(244, 162, 97, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        }
        .element-card.fire:hover {
            box-shadow: 0 20px 60px rgba(244, 162, 97, 0.3);
        }

        .element-card.air { 
            border-left-color: #2a9d8f; 
            background: linear-gradient(135deg, rgba(42, 157, 143, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        }
        .element-card.air:hover {
            box-shadow: 0 20px 60px rgba(42, 157, 143, 0.3);
        }

        .central-hub {
            position: relative;
            width: 280px;
            height: 280px;
            margin: 0 auto;
        }

        .hub-circle {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 60px rgba(76, 175, 80, 0.3), inset 0 2px 20px rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.4s ease;
        }

        .hub-circle:hover {
            transform: scale(1.08);
            box-shadow: 0 0 80px rgba(76, 175, 80, 0.5), inset 0 2px 30px rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.15);
        }

        .hub-ring {
            position: absolute;
            inset: -20px;
            border: 2px solid rgba(76, 175, 80, 0.4);
            border-radius: 50%;
            animation: rotate 20s linear infinite;
            box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
        }

        .hub-ring:nth-child(2) {
            inset: -35px;
            border-width: 1px;
            border-color: rgba(76, 175, 80, 0.25);
            animation-direction: reverse;
            animation-duration: 30s;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .floating-badge {
            position: absolute;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 10px 18px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            font-size: 14px;
            animation: float 3s ease-in-out infinite;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            z-index: 50;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .badge-top { top: -20px; left: 50%; transform: translateX(-50%); border-color: rgba(129, 199, 132, 0.5); }
        .badge-right { right: -80px; top: 50%; transform: translateY(-50%); border-color: rgba(100, 181, 246, 0.5); animation-delay: 0.5s; }
        .badge-bottom { bottom: -20px; left: 50%; transform: translateX(-50%); border-color: rgba(255, 183, 77, 0.5); animation-delay: 1s; }
        .badge-left { left: -80px; top: 50%; transform: translateY(-50%); border-color: rgba(77, 182, 172, 0.5); animation-delay: 1.5s; }

        .pulse-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .pulse-dot.green { background: #81c784; box-shadow: 0 0 15px #81c784; }
        .pulse-dot.blue { background: #64b5f6; box-shadow: 0 0 15px #64b5f6; }
        .pulse-dot.orange { background: #ffb74d; box-shadow: 0 0 15px #ffb74d; }
        .pulse-dot.teal { background: #4db6ac; box-shadow: 0 0 15px #4db6ac; }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(1.3); }
        }

        .control-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 12px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
        }

        .control-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            border: 3px solid currentColor;
        }

        .modal-enter {
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from { opacity: 0; transform: translateY(20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* Зелёная кнопка запуска контроля приёма сообщений MQTT */
        .controlloro-btn {
            background: linear-gradient(135deg, rgba(102, 187, 106, 0.9) 0%, rgba(67, 160, 71, 0.9) 100%);
            color: white;
            font-weight: 700;
            padding: 16px 32px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            /* Зеленое свечение */
            box-shadow: 0 8px 32px rgba(67, 160, 71, 0.4), 0 0 20px rgba(102, 187, 106, 0.3);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .controlloro-btn:hover {
            transform: translateY(-2px);
            /* Усиление зеленого свечения при наведении */
            box-shadow: 0 12px 40px rgba(67, 160, 71, 0.5), 0 0 30px rgba(102, 187, 106, 0.5);
            background: linear-gradient(135deg, rgba(102, 187, 106, 1) 0%, rgba(67, 160, 71, 1) 100%);
        }
        
        
        .controlloro-btn:active {
            transform: translateY(0);
            filter: brightness(0.9);
        }
        
        /* 2. Стиль, когда контроль ЗАПУЩЕН (точка!) */
        .controlloro-btn.active {
            background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%) !important;
            box-shadow: 0 0 30px rgba(0, 180, 219, 0.6);
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.05); /* Делаем её чуть больше, пока она работает */
        }


        /* Новая стильная кнопка под картинку */
        .emergency-btn {
            background: linear-gradient(135deg, rgba(239, 83, 80, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%);
            color: white;
            font-weight: 700;
            padding: 16px 32px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            box-shadow: 0 8px 32px rgba(211, 47, 47, 0.4), 0 0 20px rgba(239, 83, 80, 0.3);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .emergency-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(211, 47, 47, 0.5), 0 0 30px rgba(239, 83, 80, 0.5);
            background: linear-gradient(135deg, rgba(239, 83, 80, 1) 0%, rgba(211, 47, 47, 1) 100%);
        }

        .status-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #66bb6a;
            box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.3), 0 0 20px rgba(102, 187, 106, 0.5);
            animation: statusPulse 2s infinite;
        }

        @keyframes statusPulse {
            0%, 100% { box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.3), 0 0 20px rgba(102, 187, 106, 0.5); }
            50% { box-shadow: 0 0 0 8px rgba(102, 187, 106, 0.1), 0 0 30px rgba(102, 187, 106, 0.8); }
        }

        .progress-bar {
            height: 10px;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.2);
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 0.3s ease;
            box-shadow: 0 0 10px currentColor;
        }

        /* Текстовые стили для тёмного фона */
        .text-shadow {
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        /* Анимация свечения для элементов */
        @keyframes glow {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.2); }
        }

        .glow-effect {
            animation: glow 3s ease-in-out infinite;
        }
        /* Стиль для кнопки "Запущено" */
        @keyframes pulse-green-glow {
            0% { transform: scale(1); box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(102, 187, 106, 1); filter: brightness(1.3); }
            100% { transform: scale(1); box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4); }
        }

        .button-blink {
            animation: pulse-green-glow 0.3s ease-in-out;
        }
        
        /* Стили для переключателя локаций */
        .location-tabs {
            display: flex;
            flex-wrap: nowrap;      /* вкладки всегда в одну строку, не заворачиваем вертикально */
            background: rgba(0, 0, 0, 0.3);
            padding: 4px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tab-btn {
            padding: 6px 12px;
            white-space: nowrap;
            font-size: 0.9rem;
            border-radius: 8px; 
            color: rgba(255, 255, 255, 0.6);
            font-weight: 500; 
            cursor: pointer; 
            transition: all 0.3s;
            user-select: none;
        }

        .tab-btn.active {
            background: rgba(255, 255, 255, 0.15); 
            color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .tab-btn:hover:not(.active) { 
            color: white; 
            background: rgba(255,255,255,0.05); 
        }

        /* Переключатели для беседки */
        .switch-toggle {
            position: relative;
            width: 48px;
            height: 28px;
            background: rgba(100, 100, 100, 0.4);
            border-radius: 14px;
            cursor: pointer;
            transition: background 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .switch-toggle.active {
            background: rgba(168, 85, 247, 0.6);
            box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
        }

        .switch-knob {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .switch-toggle.active .switch-knob {
            transform: translateX(20px);
        }