﻿.gridWrapper {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-top: 2%;
    padding-right: 6%;
    padding-left: 6%;
    padding-bottom: 6%;
}

.masterGrid {
    display: grid;
    grid-template-areas:
        "heater-master-A . heater-master-B heater-master-C"
        "slot-master-A . slot-master-B slot-master-C";
    grid-template-rows: 0.5fr 2fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    height: 100%;
    width: 100%;
}

.slaveGrid {
    display: grid;
    grid-template-areas:
        "heater-slave heater-slave heater-slave heater-slave heater-slave"
        "slot-slave-1 slot-slave-2 slot-slave-3 slot-slave-4 slot-slave-5";
    grid-template-rows: 0.5fr 2fr;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    height: 100%;
    width: 100%;
}

.heater-master-A {
    grid-area: heater-master-A;
}
.heater-master-B {
    grid-area: heater-master-B;
}
.heater-master-C {
    grid-area: heater-master-C;
}
.slot-master-A {
    grid-area: slot-master-A;
}
.slot-master-B {
    grid-area: slot-master-B;
}
.slot-master-C {
    grid-area: slot-master-C;
}
.heater-slave {
    grid-area: heater-slave;
}
.slot-slave-1 {
    grid-area: slot-slave-1;
}
.slot-slave-2 {
    grid-area: slot-slave-2;
}
.slot-slave-3 {
    grid-area: slot-slave-3;
}
.slot-slave-4 {
    grid-area: slot-slave-4;
}
.slot-slave-5 {
    grid-area: slot-slave-5;
}

.heater {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: var(--cardBg);
    border-radius: 10px;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(0.9rem, 0.8vw, 1.5rem);
    padding: 15px;
    gap: 20px;
}

.slot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #bfc4c8;
    border-radius: 10px;
    color: white;
}

.imgEmpty {
    background-image: url('../asset/img/PNG/fancoilCard/empty.png');    
}

.imgIcoRad {
    background-image: url('../asset/img/PNG/fancoilCard/icoRad.png');
}

.contentIcoRadFancoil {
    width: 100%;
    height: 100%;
    background-size:contain;
    background-repeat:no-repeat;
}

.imgRadCombo {
    background-image: url('../asset/img/PNG/fancoilCard/radCombo.png');
}

.imgRadAlone {
    background-image: url('../asset/img/PNG/fancoilCard/radAlone.png');
}

.imgFloorUnit {
    background-image: url('../asset/img/PNG/fancoilCard/idu_floor.png');
}

.imgDuctUnit {
    background-image: url('../asset/img/PNG/fancoilCard/idu_duct.png');
}

.imgCassetteUnit {
    background-image: url('../asset/img/PNG/fancoilCard/idu_cassette.png');
}

.imgWallUnit {
    background-image: url('../asset/img/PNG/fancoilCard/idu_wall.png');
}

.imgAhuUnit {
    background-image: url('../asset/img/PNG/fancoilCard/idu_ahu.png');
}


.backGroungImg-center{
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
    background-size: 40% auto;
}

.slotMenuWrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: white;
}

    .slotMenuWrapper:hover {
        background-color: #ffed00;
        color: black;
    }

    .slotMenuWrapper.select {
        background-color: var(--navBarA);
        color: white;
    }

.slotMainMenu {
    position: absolute;   
    display: flex;
    flex-direction: column;
    width: max-content;
    height: auto;
    padding: 15px;
    border-radius: 5px;
    background-color: white;
    border: 2px solid var(--navBarA);
    z-index: 99;
}
    .slotMainMenu.master {
        top: 10px;
        left: 70px;
    }
    .slotMainMenu.slave {
        top: -150px;
        left: 70px;
    }

.wrapperMenuItem {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 5px;
    height: 50px;
    width: 200px;
}

.containerMenuItemIco {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 27%;
    height: 44px;
    border-radius: 10px; 
    color: white;
}

.containerMenuItemIco.base {
    background-color: #f76973;
}

.containerMenuItemIco.aux {
        background-color: #bfc4c8;
}

.containerMenuItemIco.select, containerMenuItemIcoAux.select {
    background-color: #c1d66e;
    color: white;
}

.containerMenuItemLabel {
    display: flex;
    align-items: center;
    font-size: clamp(0.8rem, 0.7vw, 1.2rem);
    font-weight: bold;
    color: var(--cardBg);
    background-color: #e6e6e6;
    border-radius: 10px;
    height: 44px;
    width: 100%;
    align-content:center;
    justify-content:center;
}
    .containerMenuItemLabel:hover {
        background-color: #ffed00;
        color: black;
    }
    .containerMenuItemLabel.select {
        background-color: var(--navBarA);
        color: white;
    }

.containerMenuItemLabelLOCK {
    display: flex;
    align-items: center;
    font-size: clamp(0.8rem, 0.7vw, 1.2rem);
    font-weight: bold;
    color: var(--cardBg);
    background-color: #e6e6e6;
    border-radius: 10px;
    height: 44px;
    width: 100%;
    align-content: center;
    justify-content: center;
}

.wrapperComandSlave {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--cardBg);
    justify-content: end;
    height: 40px;
    width: 100%;
    padding:10px;
}

.containerComandSlave {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 30px;
    background-color: var(--cardBg);
    border-radius: 5px;
    color: white;
}
    .containerComandSlave:hover {
        background-color: #ffed00;
        color: black;
    }

.noPumpAvailable {
    background-color: #f76973;
}

.labelContainer {
    position: absolute;
    bottom: 10px;
    left: 20px;
    justify-content: start;
    align-items: center;
    display: flex;
    color: var(--cardBg);
}

.wrapperHeater {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.heaterTitle {
    display: flex;
    align-items: center;
    font-size: clamp(0.9rem, 0.8vw, 1.5rem);
    font-weight: bold;
    height: 100%;
    width: 40%;
    padding-left: 10px;
}

.dynamicMenuDX {
    display: flex;
    position: absolute;
    top: -5px;
    left: 110%;
    width: 300px; /*max-content;*/
    height: 200px; /*auto; */
    padding: 10px;
    border-radius: 5px;
    color: white;
    background-color: var(--cardBg);
    border: 2px solid white;
    z-index: 99;
}
    .dynamicMenuDX::before {
        content: "";
        position: absolute;
        top: 15px; /* regola la posizione verticale */
        left: -20px; /* posiziona il triangolo fuori dal bordo sinistro */
        width: 20px;
        height: 20px;
        background-color: var(--bs-border-color-translucent);
        clip-path: polygon(100% 0, 0 50%, 100% 100%);
        z-index: 100; /* sopra il bordo */
    }

.dynamicMenuSX {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -5px;
    right: 110%;
    width: max-content;
    height: auto;
    padding: 15px;
    border-radius: 5px;
    color: white;
    background-color: var(--bs-secondary-color); /*--bs-secondary-color  --baseColor*/
    border: 2px solid white;
    z-index: 99;
    gap: 5px;
}

    .dynamicMenuSX::before {
        content: "";
        position: absolute;
        top: 15px; /* regola la posizione verticale */
        left: 100%; /* posiziona il triangolo fuori dal bordo sinistro */
        width: 20px;
        height: 20px;
        background-color: var(--bs-border-color-translucent);
        clip-path: polygon(0 0, 100% 50%, 0 100%);
        z-index: 100; /* sopra il bordo */
    }

.contestMenuItem {
    color: white;
    font-size: clamp(0.8rem, 0.7vw, 1.2rem);
    font-weight: bold;
}
    .contestMenuItem:hover {
        color: black;
        background-color: #ffed00;
    }
    .contestMenuItem.select {
        background-color: var(--navBarA);
        color: white;
    }

.fancoilPumpEraseIco {
    top: 10px; /*-20*/
    right: 10px; /*-20*/
    display: flex;
    position: absolute;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    color: #f76973;
    border-radius: 20px;
    background-color: white;
}

    .fancoilPumpEraseIco:hover {
        color: red;
        cursor: pointer;
    }

    
.fancoilLockIco {
    top: 8px; /*-20*/
    right: 5px; /*-20*/
    display: flex;
    position: absolute;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    color: #f76973;
    border-radius: 15px;
    background-color: white;
    z-index:1000;
}

/* applica la vibrazione una volta */
    .fancoilLockIco.vibrate {
        animation: vibrate 0.4s ease-in-out 1;
    }

/* definizione animazione */
@keyframes vibrate {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

.uncompleteWrapper {
    top: 20px;
    left: 70px;
    display: flex;
    position: absolute;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    background-color:black;
    border-radius:15px;
    color: var(--icoFuncBgHover); /*#f76973;*/
    z-index: 90;
}