/* Toggle Switch Base Styles */
#detail-modal .preference-toggle .toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--bs-border-color, #e2e8f0);
    /* Gray when OFF */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

/* Toggle Switch Active State */
#detail-modal .preference-toggle .toggle-switch.active {
    background-color: var(--bs-main);
    /* Main color when ON */
}

/* Toggle Thumb (sliding circle) */
#detail-modal .preference-toggle .toggle-switch .toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

/* Move thumb when active */
#detail-modal .preference-toggle .toggle-switch.active .toggle-thumb {
    transform: translateX(20px);
}

/* Disabled state (if needed) */
#detail-modal .preference-toggle .toggle-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hover effect */
#detail-modal .preference-toggle .toggle-switch:not(:disabled):hover {
    opacity: 0.9;
}

/* Focus state for accessibility */
#detail-modal .preference-toggle .toggle-switch:focus {
    outline: 2px solid var(--bs-main);
    outline-offset: 2px;
}