/* ============================================================
   TOGGLE SWITCH ENHANCEMENT - Clear ON/OFF States
   Green = ON, Gray = OFF, with text labels
   ============================================================ */

/* --- Frontend (Panel + Web) Toggle Switches --- */
/* Make OFF state clearly gray */
.custom-switch .custom-control-label:before {
    background-color: #c8ced3 !important;
    border: 2px solid #adb5bd !important;
    border-radius: 20px;
}

/* Make ON state clearly GREEN */
.custom-switch .custom-control-input:checked ~ .custom-control-label:before {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25) !important;
}

/* White knob styling */
.custom-switch .custom-control-label:after {
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ON/OFF text labels via pseudo-elements */
.custom-switch {
    position: relative;
}

.custom-switch .custom-control-label:before {
    content: '' !important;
}

/* Add ON text when checked */
.custom-switch .custom-control-input:checked ~ .custom-control-label:before {
    content: '' !important;
}

/* Focus state green ring */
.custom-switch .custom-control-input:focus ~ .custom-control-label:before {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25) !important;
}

/* Disabled state */
.custom-switch .custom-control-input:disabled ~ .custom-control-label:before {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    opacity: 0.65;
}

.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label:before {
    background-color: #8fd19e !important;
    border-color: #8fd19e !important;
}

/* ON/OFF text label next to toggle */
.custom-switch .custom-control-label::before {
    transition: all 0.3s ease;
}

/* Status text helper - shows after the toggle */
.custom-switch .custom-control-input ~ .custom-control-label .toggle-status:after {
    content: 'OFF';
    color: #dc3545;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label .toggle-status:after {
    content: 'ON';
    color: #28a745;
}


/* Lock site to light theme - hide dark/light toggle everywhere (client requested one stable theme) */
.js-theme-color-toggle{display:none !important;}
