/* Styl bazowy */
body {
    background-color: #acac90;
}

.navbar {
    min-height: 40px;
    font-size: 15px;
}

.sekcja1 {
    height: auto;
    width: auto;
    text-align: left;
    border-color: rgba(200, 0, 255, 0.31);
    border-width: 1px;
    margin-top: 45px;
    margin-left: 5px;
    margin-right: 1px;
    margin-bottom: 5px;
}

.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 21px;
    font-size: 11px;
    color: rgb(34, 255, 0);
    background-color: #8a8a70;
    border: solid;
    border-width: 1px;
    border-color: rgb(64, 255, 0);
    text-align: center;
    z-index: 1000;
}

.register-card {
    max-width: 460px;
    margin: 5rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ============================================ */
/* Style dla SCADA                              */
/* ============================================ */

/* Lista linków */
.task-list {
    list-style: none;
    padding: 0;
}

.task-list li {
    margin: 10px 0;
}

.task-list a {
    display: block;
    padding: 15px 20px;
    background: #d4d4b8;
    border: 1px solid #9a9a7e;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.task-list a:hover {
    background: #c4c4a8;
    transform: translateX(5px);
}

/* Karta SCADA */
.scada-card {
    background: #d4d4b8;
    border: 1px solid #9a9a7e;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.scada-card h3,
.scada-card h4,
.scada-card h5 {
    color: #555;
}

/* Tabela danych */
.table-scada thead {
    background-color: #c4c4a8;
}

.table-scada tbody tr:hover {
    background-color: #e0e0c8;
}

/* Formularz SCADA */
.scada-form .form-label {
    font-weight: 500;
    color: #333;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-on {
    background-color: #00cc00;
    color: #fff;
}

.status-off {
    background-color: #999;
    color: #fff;
}

.status-alarm {
    background-color: #ff0000;
    color: #fff;
}

/* ============================================ */
/* Wizualizacja SCADA                           */
/* ============================================ */

.scada-viz-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    padding-bottom: 30px;
}

.scada-building {
    position: relative;
    flex: 1;
    min-width: 600px;
    background: #d4d4b8;
    border: 2px solid #9a9a7e;
    border-radius: 12px;
    padding: 20px;
    min-height: 500px;
}

.scada-charts {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Animacja obrotu - wentylator */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-fast {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spin-slow 3s linear infinite;
}

.spin-fast {
    animation: spin-fast 1s linear infinite;
}

/* Animacja pulsowania - alarm */
@keyframes pulse-alarm {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.pulse-alarm {
    animation: pulse-alarm 0.8s ease-in-out infinite;
}

/* Animacja płomienia */
@keyframes flame {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    25% {
        transform: scaleY(1.1) scaleX(0.9);
        opacity: 0.9;
    }

    50% {
        transform: scaleY(0.9) scaleX(1.1);
        opacity: 1;
    }

    75% {
        transform: scaleY(1.05) scaleX(0.95);
        opacity: 0.85;
    }
}

.flame-anim {
    animation: flame 0.6s ease-in-out infinite;
}

/* Animacja fali wody */
@keyframes water-wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.water-anim {
    animation: water-wave 1s ease-in-out infinite;
}

/* Animacja klimatyzacji - pulsowanie */
@keyframes klim-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.klim-pulse {
    animation: klim-pulse 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .scada-viz-container {
        flex-direction: column;
    }

    .scada-building {
        min-width: 100%;
    }

    .scada-charts {
        flex: 1;
    }
}