/* MVP overrides: validation, alerts, and compatibility with tenant.css */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-info {
  background: rgba(201, 162, 39, 0.15);
  color: var(--color-brown);
  border: 1px solid var(--color-amber);
}

.alert-success {
  background: rgba(56, 161, 105, 0.15);
  color: #2d7a4f;
  border: 1px solid #38a169;
}

.alert-warning {
  background: rgba(184, 92, 56, 0.15);
  color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
}

.alert-danger {
  background: rgba(184, 92, 56, 0.2);
  color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
}

.text-danger {
  color: var(--color-terracotta);
}

.field-validation-error {
  color: var(--color-terracotta);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.25rem;
}

.validation-summary-errors {
  color: var(--color-terracotta);
  margin-bottom: 1rem;
  list-style: none;
  padding-left: 0;
}

.validation-summary-errors ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Form controls when using Bootstrap class names */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label,
.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-wheat);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  box-sizing: border-box;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-amber);
}

.form-check-input {
  accent-color: var(--color-terracotta);
}

/* Utility spacing used in views */
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }

.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-unstyled { list-style: none; padding-left: 0; margin: 0; }

.text-muted { color: var(--color-text-muted); }
.text-success { color: #2d7a4f; }
.text-warning { color: var(--color-terracotta); }
.btn-outline-danger { background: transparent; color: var(--color-terracotta); border: 2px solid var(--color-terracotta); }
.btn-outline-danger:hover { background: var(--color-terracotta); color: white; }
.btn-outline-success { background: transparent; color: #2d7a4f; border: 2px solid #38a169; }
.btn-outline-success:hover { background: #38a169; color: white; }
.small { font-size: 0.9rem; }
.fw-bold { font-weight: 600; }
.text-end { text-align: right; }
.text-center { text-align: center; }

/* Pagination (Admin) */
.pagination { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.page-item { list-style: none; }
.page-link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  color: var(--color-terracotta);
  text-decoration: none;
  border: 1px solid var(--color-wheat);
  border-radius: var(--radius);
}
.page-link:hover { background: var(--color-cream); color: var(--color-brown); }
