/* Защита от горизонтального скролла */

:root {
    --bg-primary: #1E1E1E;
    --bg-card: #252531;
    --text: #FFFFFF;
    --text-muted: #A0AEC0;
    --grid-line: #3A3A4A;

    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --bright-green: #34D399;
    --accent-indigo: #60A5FA;
    --accent-purple: #A78BFA;

    /* Цвета графиков */
    --chart-temp: #EF4444;
    --chart-valve: #F59E0B;
    --chart-tset: #3B82F6;
    --accent-orange: #F97316;

    /* Цвета для кнопок и активных элементов */
    --btn-blue-bg: #3B82F6;
    --btn-blue-bg-hover: #2563eb;
    --btn-purple-bg: #A78BFA;
    --btn-purple-bg-hover: #8B5CF6;
    --toggle-active-bg: #10B981;
    --toggle-active-shadow: rgba(16, 185, 129, 0.5);
    --limit-active-bg: #34D399;

    /* Цвета для надписей */
    --valve-display-color: #FFFFFF;
    --temp-display-color: #EF4444;

    /* Цвета для таблицы */
    --param-label-color: #A0AEC0;
    --param-value-color: #FFFFFF;

    /* Цвета для модального окна */
    --modal-bg: #252531;
    --modal-text: #FFFFFF;
    --modal-input-bg: #2D2D3A;
    --modal-input-border: #3A3A4A;
    --modal-input-focus-border: #3B82F6;
    --modal-btn-cancel-bg: #4B5563;
    --modal-btn-cancel-bg-hover: #374151;
    --modal-btn-save-bg: #10B981;
    --modal-btn-save-bg-hover: #059669;
    --tooltip-bg: rgba(37, 37, 49, 0.9);
    --tooltip-title: #FFFFFF;
    --tooltip-body: #A0AEC0;
}

[data-theme="light"] {
    --bg-primary: #F5F7FA;
    --bg-card: #FFFFFF;
    --text: #2D3748;
    --text-muted: #718096;
    --grid-line: #E2E8F0;

    --accent-blue: #3498DB;
    --accent-green: #27AE60;
    --bright-green: #2ECC71;
    --accent-indigo: #60A5FA;
    --accent-purple: #9B59B6;

    --chart-temp: #E74C3C;
    --chart-valve: #F39C12;
    --chart-tset: #3498DB;

    --btn-blue-bg: #2E86AB;
    --btn-blue-bg-hover: #236D8A;
    --btn-purple-bg: #8E44AD;
    --btn-purple-bg-hover: #7D3C98;
    --toggle-active-bg: #4CAF50;
    --toggle-active-shadow: rgba(76, 175, 80, 0.4);
    --limit-active-bg: #2ECC71;

    --valve-display-color: #2D3748;
    --temp-display-color: #E74C3C;

    --param-label-color: #718096;
    --param-value-color: #2D3748;

    --modal-bg: #FFFFFF;
    --modal-text: #2D3748;
    --modal-input-bg: #F7FAFC;
    --modal-input-border: #E2E8F0;
    --modal-input-focus-border: #3498DB;
    --modal-btn-cancel-bg: #718096;
    --modal-btn-cancel-bg-hover: #4A5568;
    --modal-btn-save-bg: #27AE60;
    --modal-btn-save-bg-hover: #218E50;

    --tooltip-bg: rgba(255, 255, 255, 0.95);
    --tooltip-title: #2D3748;
    --tooltip-body: #718096;
}

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

html {
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text);
    min-height: 100vh;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.column-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    min-width: 280px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 0;
    min-height: 0;
    width: 100%;
}

#boiler-card {
    flex: 2;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;
}



.manual-control-card {
    flex: 1;
}

#temp-card {
    flex: 2;
    position: relative;
}

.regulator-settings-card {
    flex: 1;
}

.card-header {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    border: none;
    color: white;
    width: 100%;
    font-size: 1.1rem;
}

.btn-blue {
    background-color: var(--btn-blue-bg);
}

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

.btn-active {
    background-color: var(--accent-orange);
}
.btn-active:hover {
    background-color: #E65A00;
}

[data-theme="light"] .btn-active {
    background-color: var(--chart-valve);
}
[data-theme="light"] .btn-active:hover {
    background-color: #D48B00;
}

.btn-purple {
    background-color: var(--btn-purple-bg);
}

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

/* === КНОПКА ПОДДУВА === */

.fan-toggle-btn {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    border: none;
    color: white;
    width: 130px;
    font-size: 1.1rem;
}

.fan-toggle-btn:not(.fan-on) {
    background-color: var(--btn-blue-bg);
}
.fan-toggle-btn:not(.fan-on):hover {
    background-color: var(--btn-blue-bg-hover);
}

.fan-toggle-btn.fan-on {
    background-color: var(--accent-orange);
}
.fan-toggle-btn.fan-on:hover {
    background-color: #E65A00;
}

[data-theme="light"] .fan-toggle-btn.fan-on {
    background-color: var(--chart-valve);
}
[data-theme="light"] .fan-toggle-btn.fan-on:hover {
    background-color: #D48B00;
}

/* === КРУПНЫЙ СЛАЙДЕР ПОДДУВА === */

.fan-slider {
    width: 100%;
    height: 60px;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    margin: 0;
    padding: 0;
}

.fan-slider::-webkit-slider-runnable-track {
    height: 60px;
    background: var(--grid-line);
    border: 1px solid #444;
    border-radius: 30px;
    box-sizing: border-box;
    padding: 0 12px;
}

.fan-slider::-moz-range-track {
    height: 60px;
    background: var(--grid-line);
    border: 1px solid #444;
    border-radius: 30px;
    box-sizing: border-box;
    padding: 0 12px;
}

[data-theme="light"] .fan-slider::-webkit-slider-runnable-track {
    border: 1px solid #CBD5E0;
}

[data-theme="light"] .fan-slider::-moz-range-track {
    border: 1px solid #CBD5E0;
}

.fan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--btn-blue-bg);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.fan-slider::-moz-range-thumb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--btn-blue-bg);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.fan-slider::-webkit-slider-thumb:hover,
.fan-slider::-moz-range-thumb:hover {
    background: var(--btn-blue-bg-hover);
}

.chart-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chart-container {
    flex-grow: 1;
    position: relative;
    min-height: 0;
}

canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}

/* === Управление задвижкой === */
.valve-control-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.limit-indicator {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #555;
    border: 3px solid #444;
    transition: background-color 0.2s ease;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.limit-indicator.active {
    background-color: var(--limit-active-bg);
    box-shadow: 0 0 12px var(--bright-green);
}

.valve-progress-bar {
    flex: 1;
    height: 20px;
    background-color: var(--grid-line);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.valve-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--btn-blue-bg), var(--accent-indigo));
    transition: width 0.3s ease;
    border-radius: 10px;
}

.valve-value {
    font-size: 2.2rem;
    color: var(--text);
    font-weight: 700;
    text-align: center;
    margin-top: 0.6rem;
    line-height: 1.2;
}

/* === Механизм и рычаг === */
.meo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meo-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    background-image: url("{% static 'iot_dashboard/images/meo.png' %}");
}

[data-theme="light"] .meo-image {
    background-image: url("{% static 'iot_dashboard/images/meo_light.png' %}");
}  
.meo-richag {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.meo-richag {
    transform-origin: 41% 47%;
}

/* === Надписи === */
.overlay-value {
    position: absolute;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 20;
    pointer-events: none;
}

#valve-display {
    top: 4.5rem;
    left: 7.25rem;
    color: var(--valve-display-color);
}

#temp-display {
    top: 4.5rem;
    left: 7.25rem;
    color: var(--temp-display-color);
}

/* === Переключатель режима === */
.toggle-switch {
    position: relative;
    width: 130px;
    height: 44px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
    font-weight: bold;
    margin-left: 30px;
    margin-top: 19px;
}

.toggle-switch:hover {
    background-color: #444;
    border-color: #555;
}

[data-theme="light"] .toggle-switch {
    background-color: #F3F4F6;
    border: 2px solid #A0AEC0;
}

[data-theme="light"] .toggle-switch:hover {
    background-color: #E5E7EB;
    border-color: #718096;
}

.toggle-switch.active {
    background-color: var(--toggle-active-bg);
}

.toggle-slider {
    position: absolute;
    left: 6px;
    width: 32px;
    height: 32px;
    background-color: #1E1E1E;
    border: 1px solid #333;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

[data-theme="light"] .toggle-slider {
    background-color: #FFFFFF;
    border: 2px solid #A0AEC0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
}

.toggle-switch.active .toggle-slider {
    transform: translateX(85px);
}

.toggle-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: bold;
    color: #ccc;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-switch .toggle-label {
    left: 52px;
}

.toggle-switch.active .toggle-label {
    left: auto;
    right: 58px;
    color: white;
    text-shadow: 0 0 4px rgba(255,255,255,0.6);
}

[data-theme="light"] .toggle-switch:not(.active) .toggle-label {
    color: #2D3748;
}

.theme-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 68px;
    height: 30px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.25s ease, border-color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 6px;
    font-weight: bold;
    z-index: 10;
}

.theme-toggle:hover {
    background-color: #444;
    border-color: #555;
}

.theme-toggle.light {
    background-color: #F3F4F6;
    border-color: #CBD5E0;
    box-shadow: 0 0 8px rgba(243, 244, 246, 0.5);
}

.theme-toggle.light:hover {
    background-color: #E5E7EB;
    border-color: #A0AEC0;
}

.theme-slider {
    width: 20px;
    height: 20px;
    background-color: #1E1E1E;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: transform 0.25s ease;
    z-index: 2;
}

.theme-toggle.light .theme-slider {
    background-color: #FFFFFF;
    transform: translateX(36px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.theme-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(7px);
    font-size: 0.75rem;
    font-weight: bold;
    color: #ccc;
    transition: transform 0.25s ease, color 0.25s ease;
    pointer-events: none;
    text-shadow: none;
}

.theme-toggle.light .theme-label {
    color: #333;
}

.theme-label.moon {
    transform: translate(calc(-50% + 7px), -50%) !important;
}

.theme-label.sun {
    transform: translate(calc(-50% - 8px), -50%) !important;
}

.regulator-control-row {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: 1rem;
    width: 100%;
}

.regulator-mode-section {
    flex: 0 0 200px;
}

.regulator-params-section {
    flex: 1;
    min-width: 150px;
    border: 1px solid var(--grid-line);
    border-radius: 0.5rem;
    overflow: hidden;
}

.param-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0.8rem;
    margin: 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--grid-line);
}

.param-row:last-child {
    border-bottom: none;
}

.param-label {
    color: var(--param-label-color);
    font-weight: 500;
}

.param-value {
    color: var(--param-value-color);
    font-weight: 600;
}

.regulator-button-section {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.25rem;
}

.btn-configure {
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    color: white;
    background-color: var(--btn-blue-bg);
    transition: background-color 0.2s;
}

.btn-configure:hover {
    background-color: var(--btn-blue-bg-hover);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--modal-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: transform 0.25s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--modal-text);
}

.setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.setting-label {
    flex: 0 0 100px;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

.setting-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.setting-input {
    flex: 1;
    background-color: var(--modal-input-bg);
    border: 1px solid #3A3A4A;
    border-radius: 0.375rem;
    color: var(--text);
    font-size: 1.05rem;
    padding: 0.5rem 0.75rem;
    text-align: right;
    outline: none;
    border-color: var(--modal-input-border);
}

.setting-input:focus {
    border-color: var(--modal-input-focus-border);
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.setting-input::-webkit-outer-spin-button,
.setting-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.setting-input[type=number] {
    -moz-appearance: textfield;
}

.setting-btn {
    width: 32px;
    height: 32px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.setting-btn:hover {
    background-color: #2563eb;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.modal-btn {
    flex: 1;
    padding: 0.65rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.modal-btn-cancel {
    background-color: var(--modal-btn-cancel-bg);
    color: white;
}

.modal-btn-cancel:hover {
    background-color: var(--modal-btn-cancel-bg-hover);
}

.modal-btn-save {
    background-color: var(--modal-btn-save-bg);
    color: white;
}

.modal-btn-save:hover {
    background-color: var(--modal-btn-save-bg-hover);
}

/* === КОНТЕЙНЕР ДЛЯ ШНЕКА === */
.auger-container {
    height: 52px;
    margin: 0.75rem 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--grid-line);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--grid-line);
}

.auger-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 30px;
    transform: translateY(-50%) scale(1, 1.3);
    transform-origin: center;
    background: url("../images/auger-sprite.png") repeat-x center center / auto 100%;
}

.auger-forward {
    animation: scrollAugerForward 12s linear infinite;
}

.auger-reverse {
    animation: scrollAugerReverse 12s linear infinite;
}

.auger-stop {
    animation: none;
}

.auger-overlay-light {
    display: none;
}

[data-theme="light"] .auger-overlay-light {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    border-radius: 10px;
}

@keyframes scrollAugerForward {
    from { background-position: 0 0; }
    to   { background-position: -656px 0; }
}

@keyframes scrollAugerReverse {
    from { background-position: 0 0; }
    to   { background-position: 656px 0; }
}

/* === ВЕНТИЛЯТОР === */

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

.fan-rotor.spinning {
    animation: fanRotate linear infinite;
    animation-duration: 4s;
}

.fan-circular-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: var(--grid-line);
    border: 1px solid var(--grid-line);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fan-rotor {
    position: absolute;
    width: 92px;
    height: 92px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s linear;
}

[data-theme="dark"] .fan-rotor {
    background-image: url("../images/vent_dark1.png");
}

[data-theme="light"] .fan-rotor {
    background-image: url("../images/vent_light1.png");
}

/* === ПЛАМЯ, КОТЁЛ И ЧЁРНЫЙ ФОН ПОД ОГНЁМ === */

/* === ОСНОВНОЙ КОНТЕЙНЕР (заменяет boiler-container) === */
/* === КОНТЕЙНЕР КОТЛА — КВАДРАТНЫЙ === */
.boiler-flame-wrapper {
    position: relative;
    width: 95%;
    max-width: 400px;
    height: 0;
    padding-bottom: 100%; /* сохраняет квадрат */
    margin: 0 auto;
    margin-top: 100px; /* ← добавьте эту строку */
}

.boiler-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === ИЗОБРАЖЕНИЕ КОТЛА === */
.boiler-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 3; /* ← самый верх */
}

/* === ЧЁРНЫЙ ФОН (fon.png) === */
.flame-backdrop,
.flame-gif {
    position: absolute;
    opacity: 1;
    pointer-events: none;
    /* width/height можно оставить, или задать явно */
}

.flame-gif {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flame-gif.visible {
    opacity: 1;
}




/* === Информация о котле (только десктоп) === */
.boiler-info {
    margin: 0.8rem 0 1.2rem 0;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.boiler-info div {
    font-weight: 500;
}

.boiler-info div:first-child {
    color: var(--text);
    font-weight: 600;
}

/* === АДАПТИВНАЯ ВЕРСИЯ === */
@media (max-width: 1199px) {
    body {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
        min-height: 100vh;
    }
    
    .column-container {
        display: contents;
    }

    /* === ПОРЯДОК ПЛИТОК В МОБИЛЬНОЙ ВЕРСИИ === */
    #temps-card { order: 2; }               /* Температуры */
    #boiler-card { order: 3; }              /* Котёл */
    .manual-control-card { order: 4; }      /* Поддув */
    #temp-card { order: 1; }                /* График */
    .regulator-settings-card { order: 5; }  /* Шнек */

    /* Фиксированная высота для котла */
    #boiler-card {
        min-height: auto;
        height: 500px;
        max-height: 500px;
        flex: none;
    }

    .boiler-flame-wrapper {
        width: 90%;
        max-width: 360px;
        height: 80%;
        padding-bottom: 0;
        aspect-ratio: 1 / 1;
        margin: 20px auto 0;
    }

    .card {
        width: 100%;
        min-width: 600px;
        padding: 1.25rem;
        margin: 0 auto;
    }
    
    .boiler-info {
        display: none !important;
    }
}

/* Полноэкранный режим: никаких полос, фон на весь экран */
@media (display-mode: fullscreen) {
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e !important;
    overflow: hidden;
  }
}
