/* Form Inputs Component - Reusable input styles */

.settings-input {
  width: 100%;
  flex: 1;
  padding: 0.25rem 0.45rem;
  border-radius: var(--br-sm);
  border: 1px solid #ccc;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.settings-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.settings-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.settings-input[type="email"] {
  padding: 0.4rem 0.6rem;
}

.settings-promote-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.settings-promote-row .settings-input {
  flex: 1;
  min-width: 200px;
}

.settings-promote-row button {
  flex-shrink: 0;
}

.settings-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.settings-input-group input {
  padding: 0.5rem;
  border-radius: var(--br-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  color: var(--fg);
}

.settings-input-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Settings rows for grouped inputs */
.settings-promote-help {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
}

section#promote-user-section,
section#attachments-section {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--br-md);
}

.attachments-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.attachments-upload-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.attachments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attachments-list li {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--br-sm);
  font-size: 0.85rem;
}

.settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-list li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-list li:last-child {
  border-bottom: none;
}

/* ── Mobile Responsive ── */
@media (max-width: 480px) {
  .settings-promote-row .settings-input {
    min-width: 0;
    width: 100%;
  }
  .settings-promote-row {
    flex-direction: column;
  }
  .attachments-upload-wrap {
    flex-direction: column;
    align-items: stretch;
  }
}
