/* === FORM STYLING - REFACTORED FOR EFFICIENCY === */

/* Common form elements */
.form-table,
.form-flex-wrapper {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Table-based forms */
.form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
  font-size: 0.9rem;
  color: #333;
}

.form-table tr {
  background: #fff;
}

.form-table td {
  padding: 0.25rem 0;
  vertical-align: middle;
}

.form-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #444;
  width: 140px;
  padding-right: 0.75rem;
  font-size: 0.85rem;
}

/* Form inputs - consolidated selectors */
.form-table input[type="text"],
.form-table input[type="number"],
.form-table input[type="email"],
.form-table textarea,
.form-table select,
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #ccc;
  font-size: 0.85rem;
}

.form-table input[type="text"],
.form-table input[type="number"],
.form-table input[type="email"],
.form-table textarea,
.form-table select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background-color: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Focus states - consolidated */
.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus,
.form-table input[type="email"]:focus,
.form-table textarea:focus,
.form-table select:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
  outline: none;
}

/* Textarea specific */
.form-table textarea {
  min-height: 3.5em;
  resize: vertical;
}

/* Radio and checkbox inputs */
.form-table input[type="radio"],
.form-table input[type="checkbox"] {
  transform: scale(0.95);
  margin-right: 0.3rem;
}

/* Switch components */
.form-table .switchWrapper {
  margin-top: 0.1rem;
}

.form-table .switch {
  transform: scale(0.9);
}

/* Button styling removed - using standardized button system */

/* Flex-based forms */
.form-flex-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.form-column-left,
.form-column-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  width:fit-content
}

.form-field .formLabel {
  color: #b0b0b0;
  font-size: 0.7em;
}

.form-field input[type="number"] {
  width: 50px;
}

.form-field input.bigint {
  width: 120px;
}



/* Form image styling */
.form-image {
  margin-bottom: 1rem;
}

.form-image label {
  margin-bottom: 0.5rem;
  display: block;
}






