body {
    background: #f4f7fb;
}

/* ===== PLAN ===== */

.scada-board {
    width: 100%;
}

.plan-wrapper {
    position: relative;
    width: 100%;
    min-height: 760px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
}

.building-plan {
    width: 100%;
    max-width: 1100px;
    display: block;
    margin: 0 auto;
    padding: 20px;
}

/* ===== CZUJNIKI ===== */

.sensor {
    position: absolute;
    min-width: 90px;
    padding: 8px 10px;
    background: #fff200;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    z-index: 10;
}

.sensor-label {
    display: block;
    font-weight: 700;
    color: #0d6efd;
}

.sensor-value {
    font-size: 14px;
    color: #000;
}

/* POZYCJE CZUJNIKÓW */

.sensor-x1 {
    top: 140px;
    left: 140px;
}

.sensor-x2 {
    top: 260px;
    left: 140px;
}

.sensor-x3 {
    top: 250px;
    left: 320px;
}

.sensor-x4 {
    top: 250px;
    left: 570px;
}

.sensor-x5 {
    top: 540px;
    left: 470px;
}

/* ===== ZONY TEMPERATUR ===== */

.zone-overlay {
    position: absolute;
    border-radius: 20px;
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.zone-a {
    top: 180px;
    left: 290px;
    width: 210px;
    height: 180px;
}

.zone-b {
    top: 180px;
    left: 540px;
    width: 210px;
    height: 180px;
}

.zone-c {
    top: 455px;
    left: 400px;
    width: 280px;
    height: 210px;
}

.zone-blue {
    background: rgba(13,110,253,0.25);
}

.zone-green {
    background: rgba(25,135,84,0.25);
}

.zone-none {
    background: transparent;
}

.zone-orange {
    background: rgba(253,126,20,0.28);
}

.zone-red {
    background: rgba(220,53,69,0.28);
}

/* ===== IKONY SYSTEMÓW ===== */

.system-icon {
    position: absolute;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #343a40;
    border-radius: 14px;
    font-size: 24px;
    z-index: 12;
}

/* POZYCJE IKON */

.icon-pozar {
    top: 120px;
    left: 980px;
}

.icon-zalanie {
    top: 520px;
    left: 980px;
}

.icon-wlamanie {
    top: 520px;
    left: 120px;
}

.icon-co {
    top: 520px;
    left: 700px;
}

.icon-wentylacja {
    top: 120px;
    left: 860px;
}

/* ===== ALARM ===== */

.active-alert {
    animation: pulseAlert 1s infinite;
    border-color: #dc3545;
}

@keyframes pulseAlert {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ===== WENTYLACJA ===== */

.fan-off {
    opacity: 0.4;
}

.fan-slow {
    animation: spinFan 2s linear infinite;
}

.fan-fast {
    animation: spinFan 0.8s linear infinite;
}

@keyframes spinFan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== BOILER ===== */

.boiler-box {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 200px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.boiler-title {
    font-weight: 600;
}

/* ===== KARTY ===== */

.metric-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #e9ecef;
}

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 991px) {

    .plan-wrapper {
        min-height: 900px;
    }

    .sensor-x1 { top: 120px; left: 60px; }
    .sensor-x2 { top: 220px; left: 60px; }
    .sensor-x3 { top: 200px; left: 200px; }
    .sensor-x4 { top: 200px; left: 360px; }
    .sensor-x5 { top: 450px; left: 260px; }

}