/* ==========================================================================
   Count On Sheep — Brand Design System
   Font: Inter · Dark theme · Minimal, geometric
   ========================================================================== */

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #D9D9D9;
  background-color: #0C2124;
  border: 1px solid rgba(147, 186, 191, 0.2);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  border-color: #006C79;
  box-shadow: 0 0 0 2px rgba(0, 108, 121, 0.25);
}
.form-input::placeholder {
  color: #A1ADB8;
  opacity: 0.5;
}
.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Select inputs */
.form-select {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #D9D9D9;
  background-color: #0C2124;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A1ADB8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem 1.25rem;
  border: 1px solid rgba(147, 186, 191, 0.2);
  border-radius: 0.5rem;
  outline: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-select:focus {
  border-color: #006C79;
  box-shadow: 0 0 0 2px rgba(0, 108, 121, 0.25);
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #D9D9D9;
  background-color: #0C2124;
  border: 1px solid rgba(147, 186, 191, 0.2);
  border-radius: 0.5rem;
  outline: none;
  resize: vertical;
  min-height: 5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-textarea:focus {
  border-color: #006C79;
  box-shadow: 0 0 0 2px rgba(0, 108, 121, 0.25);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn--primary {
  background-color: #006C79;
  color: #FFFFFF;
}
.btn--primary:hover {
  background-color: #008694;
}
.btn--secondary {
  background-color: transparent;
  color: #D9D9D9;
  border-color: rgba(147, 186, 191, 0.2);
}
.btn--secondary:hover {
  background-color: rgba(147, 186, 191, 0.08);
  border-color: rgba(147, 186, 191, 0.35);
}
.btn--danger {
  background-color: #7F1D1D;
  color: #FCA5A5;
}
.btn--danger:hover {
  background-color: #991B1B;
}
.btn--sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

/* ── Navigation links ────────────────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #A1ADB8;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  text-decoration: none;
}
.nav-link:hover {
  color: #D9D9D9;
  background-color: rgba(147, 186, 191, 0.08);
}
.nav-link--active {
  color: #D9D9D9;
  background-color: rgba(0, 108, 121, 0.2);
}

/* ── Flash messages ──────────────────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid;
}
.flash--info {
  background-color: rgba(111, 192, 209, 0.08);
  border-color: rgba(111, 192, 209, 0.25);
  color: #6FC0D1;
}
.flash--success {
  background-color: rgba(153, 202, 65, 0.08);
  border-color: rgba(153, 202, 65, 0.25);
  color: #99CA41;
}
.flash--warning {
  background-color: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.25);
  color: #F5A623;
}
.flash--error {
  background-color: rgba(224, 82, 82, 0.08);
  border-color: rgba(224, 82, 82, 0.25);
  color: #E05252;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.badge--verbal-yes {
  background-color: rgba(153, 202, 65, 0.15);
  color: #99CA41;
}
.badge--tbd {
  background-color: rgba(245, 166, 35, 0.15);
  color: #F5A623;
}
.badge--deleted {
  background-color: rgba(224, 82, 82, 0.15);
  color: #E05252;
}

/* ── Data table ──────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.data-table thead th {
  padding: 0.625rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A1ADB8;
  text-align: left;
  border-bottom: 1px solid rgba(147, 186, 191, 0.15);
}
.data-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: #D9D9D9;
  border-bottom: 1px solid rgba(147, 186, 191, 0.08);
}
.data-table tbody tr {
  transition: background-color 0.1s ease;
}
.data-table tbody tr:hover {
  background-color: rgba(147, 186, 191, 0.04);
}
.data-table tbody tr:hover td.sticky {
  background-color: #1e3a3f;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background-color: #1C363A;
  border: 1px solid rgba(147, 186, 191, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* ── Radio group (custom) ────────────────────────────────────────────────── */
.radio-group {
  display: flex;
  gap: 0.5rem;
}
.radio-group--vertical {
  flex-direction: column;
}
.radio-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #A1ADB8;
  background-color: #0C2124;
  border: 1px solid rgba(147, 186, 191, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.radio-group label:hover {
  border-color: rgba(147, 186, 191, 0.4);
  color: #D9D9D9;
}
.radio-group input:checked + span,
.radio-group input:checked + div,
.radio-group label:has(input:checked) {
  border-color: #006C79;
  color: #D9D9D9;
  background-color: rgba(0, 108, 121, 0.15);
}
.radio-group input[type="radio"] {
  width: 0.875rem;
  height: 0.875rem;
  accent-color: #006C79;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* ── Detail definition list ──────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.detail-item dt {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A1ADB8;
  margin-bottom: 0.25rem;
}
.detail-item dd {
  font-size: 0.875rem;
  color: #D9D9D9;
}
