.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-slider.active {
    background-color: #dc3545; /* Red color like your image */
}

.toggle-slider.active:before {
    transform: translateX(26px);
}

.toggle-slider.inactive {
    background-color: #6c757d;
}

/* Disabled state */
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
}

.status-toggle-cell {
    padding: 8px 12px;
    vertical-align: middle;
}

/* Hover effects */
.toggle-slider:hover {
    opacity: 0.8;
}

.toggle-switch input:disabled + .toggle-slider:hover {
    opacity: 0.6;
}