
.form-group {
    margin-bottom: 1.5rem;
}

.field-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-input-narrow {
    width: 150px;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* .switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
} */

.switch-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    top: 8px;
}

.switch-label + small {
    display: block;
    margin-top: 14px;
}

.switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.switch-text {
    font-size: 0.875rem;
    color: #7b96c1;
    user-select: none;
}

.switch-text::before {
    content: attr(data-inactive);
}

/* Estados */
.switch-input:disabled + .switch-track {
    opacity: 0.6;
    pointer-events: none;
}

.switch-label:has(.switch-input:disabled) {
    cursor: default;
}

.switch-input:checked + .switch-track {
    background-color: #3b82f6;
}

.switch-input:checked + .switch-track .switch-thumb {
    transform: translateX(20px);
}

.switch-input:checked ~ .switch-text::before {
    content: attr(data-active);
}

.switch-input:focus + .switch-track {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.375rem;
}

.error {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
}
