/* app/assets/stylesheets/base/forms.css */
.alert {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}

.alert-error { background: #fff1f2; color: #dc2626; }
.alert-success { background: #ecfdf5; color: #16a34a; }

.page-title { font-weight: 700; font-size: 2.25rem; margin-bottom: 1rem; }

.form-field {
  display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
}

/* Fizzy-inspired button styles: balanced padding, subtle radius, and responsive stacking */
:root {
  --fizzy-primary: #1f6feb;
  --fizzy-primary-hover: #155ac8;
  --fizzy-muted: #94a3b8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  background: var(--fizzy-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  min-height: 36px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.03);
}
.btn-primary:hover { background: var(--fizzy-primary-hover); }

/* Force white text and remove underline on anchor buttons (high specificity) */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary * {
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(31,111,235,0.12);
}

.link-muted { color: #374151; text-decoration: underline; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Disabled button state: more obvious visual affordance */
.btn-primary[disabled], .btn-primary:disabled {
  opacity: 0.92;
  cursor: not-allowed;
  background: var(--fizzy-muted);
  color: #ffffff;
  box-shadow: none;
  filter: grayscale(8%);
}
.btn-primary[disabled]:hover, .btn-primary:disabled:hover { background: var(--fizzy-muted); }

/* Secondary button (used for cancel/back links rendered as buttons) */
.btn-secondary {
  display: inline-block;
  text-align: center;
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  background: transparent;
  color: #374151;
  border: 1px solid var(--border-subtle, #E5E7EB);
  cursor: pointer;
}
.btn-secondary:hover { background: #f8fafc; }

/* Form actions responsive: stack on small screens like Fizzy */
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

@media (max-width: 640px) {
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; }
  .form-actions .btn-secondary { margin-top: 0.5rem; }
}

