/* === Toggle Switch Styles === */
.status-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* Checked state (green ON) */
.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

/* Move the knob to the right */
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Disabled state */
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hover effect */
.toggle-switch:hover input:not(:disabled) + .toggle-slider {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
