/* MOISCANNER — ortak form alanı (select, number, text) */

.field-control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 22, 34, 0.94) 0%, rgba(9, 12, 20, 0.9) 100%);
  color: var(--text, #e2e8f0);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field-control::placeholder {
  color: var(--muted-2, #7d8ba0);
  opacity: 0.85;
}

.field-control:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.98) 0%, rgba(11, 15, 25, 0.94) 100%);
}

.field-control:focus {
  outline: none;
  border-color: rgba(178, 102, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.14);
  background: rgba(12, 16, 26, 0.96);
}

.field-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

select.field-control {
  padding-right: 2.35rem;
  cursor: pointer;
  background-color: rgba(9, 12, 20, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.field-control::-ms-expand {
  display: none;
}

select.field-control option {
  background: var(--surface, #0d1119);
  color: var(--text, #e2e8f0);
}

input[type="number"].field-control {
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"].field-control::-webkit-outer-spin-button,
input[type="number"].field-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-control--mono {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
}

.field-control--compact {
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
}

select.field-control--compact {
  padding-right: 2.1rem;
  background-position: right 0.65rem center;
}
