/* Toggle Switch Styles */

.toggle-switch {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: var(--spacing-md) !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    width: auto !important;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    display: block !important;
    position: relative;
    width: 52px !important;
    height: 28px !important;
    background: #bbb;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0 !important;
    order: 1 !important;
}

.toggle-slider::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 2px;
    top: 2px;
    background: var(--white);
    border-radius: 50%;
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-blue);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    left: 26px;
}

.toggle-label {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 20px !important;
    text-align: center;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    order: 2 !important;
    display: inline-block !important;
}
