﻿/* sawitch toggle */
.mus-field {
    margin-bottom: 1.25rem;
}

.mus-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe2ea;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mus-switch-card:hover {
    transform: translateY(-1px);
    border-color: #cfd8e3;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.mus-switch-card.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.mus-switch-card.has-error {
    border-color: #dc3545;
}

.mus-switch-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.mus-switch-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #24324a;
    line-height: 1.3;
}

.mus-switch-card__desc {
    margin-top: 0.22rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
}

.mus-switch {
    position: relative;
    flex: 0 0 auto;
}

.mus-switch__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mus-switch__track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 3.25rem;
    height: 1.85rem;
    border-radius: 999px;
    background: #d8e0ea;
    transition: all 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.mus-switch__thumb {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
    transition: all 0.22s ease;
}

.mus-switch__input:checked + .mus-switch__track {
    background: var(--bs-primary);
}

.mus-switch__input:checked + .mus-switch__track .mus-switch__thumb {
    transform: translateX(1.4rem);
}

.mus-switch-card:has(.mus-switch__input:checked) {
    border-color: color-mix(in srgb, var(--bs-primary) 40%, white);
    background: color-mix(in srgb, var(--bs-primary) 4%, white);
}

.mus-switch-card:has(.mus-switch__input:checked) .mus-switch-card__title {
    color: var(--bs-primary);
}

.mus-switch-card:has(.mus-switch__input:focus-visible) {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 10%, transparent);
}

.invalid-feedback.d-block {
    margin-top: 0.45rem;
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .mus-switch-card {
    background: #1f2637;
    border-color: #344054;
    box-shadow: none;
}

[data-bs-theme="dark"] .mus-switch-card__title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mus-switch-card__desc {
    color: #98a2b3;
}

[data-bs-theme="dark"] .mus-switch__track {
    background: #344054;
}

[data-bs-theme="dark"] .mus-switch__thumb {
    background: #fff;
}

[data-bs-theme="dark"] .mus-switch-card:has(.mus-switch__input:checked) {
    background: color-mix(in srgb, var(--bs-primary) 8%, #1f2637);
    border-color: var(--bs-primary);
}

