/* ==============================================================
   SWITCHES / TOGGLES COMPONENT
   ============================================================== */

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

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--white-rgb), 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--primary);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(var(--black-rgb), 0.2);
}

input:checked+.slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Size variations */
.switch-sm {
    width: 40px;
    height: 20px;
}

.switch-sm .slider:before {
    height: 14px;
    width: 14px;
}

input:checked+.switch-sm .slider:before {
    transform: translateX(20px);
}

/* Switch Container (Standardized Wrapper) */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    transition: var(--transition, all 0.3s ease);
}

.switch-container:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.switch-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 2px;
}