body{
    background:#e9ecef;
    font-family:'Segoe UI',sans-serif;
    margin:0;
}

/* HEADER */

.header{
    background:#003b71;
    color:white;
    border-bottom:4px solid orange;
    padding:15px 25px;
}

.header .row{
    align-items:center;
}

.header h2{
    margin:0;
    font-weight:700;
}

.header-label{
    font-size:14px;
    opacity:0.8;
}

.company-logo{
    height:100px;
    width:auto;
    max-width:100%;
    object-fit:contain;

    filter:
        drop-shadow(0 0 3px white)
        drop-shadow(0 0 3px white)
        drop-shadow(0 0 3px white);
}

/* CARDS */

.card-hmi{
    border:none;
    border-radius:25px;
    background:white;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
    height:100%;
}

.card-body{
    padding:20px;
}

/* TITLES */

.card-hmi h2{
    color:#003b71;
    font-weight:700;
}

/* CYCLUS */

.switch-container{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    margin-top:15px;
}

.toggle{
    position:relative;
    width:120px;
    height:220px;
}

.toggle input{
    display:none;
}

.slider{
    position:absolute;
    inset:0;
    background:#dfe4ea;
    border-radius:70px;
    cursor:pointer;
    box-shadow:inset 0 4px 15px rgba(0,0,0,0.15);
}

.slider:before{
    content:"";
    position:absolute;
    width:85px;
    height:85px;
    left:17px;
    bottom:17px;
    background:white;
    border-radius:50%;
    box-shadow:0 5px 15px rgba(0,0,0,0.25);
    transition:0.3s;
}

input:checked + .slider{
    background:#28a745;
}

input:checked + .slider:before{
    transform:translateY(-100px);
}

/* MOTOR */

.motor-btn{
    height:70px;
    border-radius:15px;
    font-size:22px;
    font-weight:700;
}

/* SPEED */

.rpm-display{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:15px;
}

.speed-btn{
    width:80px;
    height:80px;
    border-radius:20px;
    font-size:40px;
}

#rpmValue{
    font-size:64px;
    font-weight:700;
    color:#003b71;
    min-width:110px;
}

/* ALARMS */

.alarm-row{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:18px;
    margin-bottom:10px;
}

.alarm-light{
    width:26px;
    height:26px;
    border-radius:50%;
    background:#cfd4da;
    border:2px solid #95a1b1;
}

/* RESET */

.reset-btn{
    width:100%;
    height:65px;
    margin-top:20px;
    font-size:24px;
    font-weight:700;
    border-radius:15px;
    border:none;
    background:#003b71;
}

/* GRAPH */

#currentChart{
    width:100%;
    height:180px !important;
}

/* DESKTOP OPTIMIZATION */

@media (min-width:992px){

    .top-row{
        min-height:390px;
    }

    .bottom-row{
        min-height:260px;
    }
}

/* MOBILE */

@media (max-width:991px){

    .header{
        text-align:center;
    }

    .header .row > div{
        margin-bottom:10px;
    }

    .motor-btn{
        height:60px;
        font-size:18px;
    }

    .toggle{
        width:100px;
        height:190px;
    }

    #rpmValue{
        font-size:48px;
    }

    .speed-btn{
        width:65px;
        height:65px;
    }
}