.sensors-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sensor-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.sensor-input-group label {
    min-width: 80px;
    font-weight: bold;
}

.sensor-input-group input[type="number"] {
    width: 80px;
    padding: 5px;
}

.sensor-input-group input[type="checkbox"] {
    transform: scale(1.3);
}

.sensor-result {
    min-width: 100px;
    font-style: italic;
}

.sensor-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.group-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.group-info span {
    font-size: 14px;
}

.group-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sensor-checkbox {
    background: white;
    /* padding: 5px 10px; */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    position: relative;
}

/* .sensor-checkbox :hover {
    background: rgb(230, 230, 230);
} */


.sensor-checkbox label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.group-info input[type="number"] {
    width: 50px;
    padding: 3px;
    margin-right: 10px;
}

.group-info label {
    margin-right: 10px;
    white-space: nowrap;
}

.group-params {
    margin: 10px 0;
}

.normal-params,
.trigger-params {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.group-param {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.group-param label {
    white-space: nowrap;
}

.group-param select {
    padding: 3px;
    min-width: 120px;
}

.group-param input {
    width: 100px;
    padding: 3px;
}

.sensor-group-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 5px;
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.sensor-group-controls>label {
    min-width: 120px;
    font-weight: bold;
}

.sensor-group-controls input[type="number"] {
    width: 80px;
    padding: 5px;
}

.normal-params,
.trigger-params {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.normal-params label,
.trigger-params label {
    font-weight: bold;
    white-space: nowrap;
}

/* #add-sensor-group {
    background-color: #2196F3;
    padding: 8px 15px;
    margin-left: auto;
}

#add-sensor-group:hover {
    background-color: #0b7dda;
} */

.sensor-checkbox input[type="checkbox"]:checked+label {
    position: relative;
}

.sensor-checkbox input[type="checkbox"]:checked+label::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #ff0000;
    border-radius: 6px;
    pointer-events: none;
}

.sensor-checkbox input[type="checkbox"]:checked {
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 4px;
}

.sensor-checkbox input[type="checkbox"]:checked~* {
    /* box-shadow: 0 0 0 2px #ff0000; */
    border-radius: 4px;
}




.remove-group {
    margin-left: auto;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
}


/* Existing group styles */
.summary-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.group-title {
    font-weight: bold;
    margin-right: auto;
}

.group-count {
    color: #666;
    margin-right: 15px;
}

.group-current {
    font-weight: bold;
    color: #2e7d32;
    min-width: 80px;
    text-align: right;
}

.sensor-group-header {
    padding: 15px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.accordion-group {

    margin-bottom: 20px;

}




#modal-save-end-resistor {
    color: white;
    background-color: #2196F3;
    padding: 8px 15px;
    margin-left: auto;
    border-radius: 4px;
    border: none;
}

#modal-save-end-resistor:hover {
    background-color: #0b7dda;
}


#modal-save-voltage {
    color: white;
    background-color: #2196F3;
    padding: 8px 15px;
    margin-left: auto;
    border-radius: 4px;
    border: none;
}

#modal-save-voltage:hover {
    background-color: #0b7dda;
}


#modal-add-group {
    color: white;
    background-color: #2196F3;
    padding: 8px 15px;
    margin-left: auto;
    border-radius: 4px;
    border: none;
}

#modal-add-group:hover {
    background-color: #0b7dda;
}



#modal-update-chart {
    color: white;
    background-color: #2196F3;
    padding: 8px 15px;
    margin-left: auto;
    border-radius: 4px;
    border: none;
}

#modal-update-chart:hover {
    background-color: #0b7dda;
}


.image-flame {
    position: absolute;
    left: 60px;
    top: 0;
    width: 25px;
    height: 30px;
    opacity: 0.9;
}


.image-led {
    position: absolute;
    right: 10px;
    top: 3px;
    width: 30px;
    height: 30px;
    opacity: 0.9;
}


/* Стили для датчиков в сработке */
.sensor-checkbox-container.triggered .sensor-label {
    border: 2px solid red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

/* Стили для иконки светодиода */
.led-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Стили для label датчика */
.sensor-label {
    display: inline-block;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.sensor-label.active {
    border: 2px solid rgb(255, 153, 153);
    background: #ff877e;
    /* box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); */
    padding: 5px;
    border-radius: 6px;
}


/* .sensor-label.active:hover {
    background: rgb(230, 230, 230);
} */

.group-length {
    margin-left: 10px;
    cursor: pointer;
    color: #666;
    font-size: 0.9em;
}

.group-length:hover {
    color: #333;
    text-decoration: underline;
}


.sensor-group-compact {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.group-title {
    font-weight: bold;
    font-size: 16px;
}

.edit-group-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.edit-group-btn:hover {
    opacity: 0.7;
}

.group-summary div {
    /* margin: 3px 0; */
    font-size: 14px;
}

.group-status {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ccc;
    font-size: 13px;
    color: #555;
}

.group-summary-info {


    margin-left: 5px;
    display: flex;
    flex-wrap: wrap;
}


.group-controls-icon
{

    margin-right: 5px;

}

.group-control-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    margin-left: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
    background-color: #6b6b6b0a;
    border-radius: 4px;
}

.group-control-button:hover {
    opacity: 1;
    background-color: #6b6b6b86;
}

.group-control-button img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.template-hidden {
    display: none !important;
}