/* ============================================
   FORMS - Option A: Profesional Limpio
   ============================================ */

input, select {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    transition: border-color 0.15s;
    font-family: inherit;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
    outline: none;
}

.form-group label {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 12px;
}

optgroup {
    color: var(--gray-700);
    font-weight: 500;
}

option {
    color: var(--gray-800);
}

input.input-error, select.input-error {
    border-color: var(--danger);
    background: var(--danger-light);
}

input.input-error:focus, select.input-error:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.2s;
    border-radius: 12px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* All toggle variants use the same primary blue */
.toggle-switch.toggle-estructura input:checked + .slider,
.toggle-switch.toggle-envolvente input:checked + .slider {
    background-color: var(--primary);
}

.toggle-switch.toggle-estructura input:focus + .slider,
.toggle-switch.toggle-envolvente input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Config grid in floor panels */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.config-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--gray-700);
    font-size: 13px;
}

.config-item .config-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.config-item .config-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.config-item small {
    color: var(--gray-500);
    font-size: 12px;
}

/* Checkbox labels in dropdowns */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}
