/* State of Madison Courts | shared stylesheet */

body { font-family: "Inter", sans-serif; }
.serif-header { font-family: "Crimson Text", serif; }
[x-cloak] { display: none !important; }
a { text-decoration: none; }

.loading-spinner {
  border: 2px solid #e5e7eb;
  border-top: 2px solid #2D5A5C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tab-active { border-bottom: 2px solid #2D5A5C; color: #2D5A5C; }
.tab-inactive { border-bottom: 2px solid transparent; color: #9CA3AF; }
.tab-inactive:hover { color: #6B7280; }

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; text-align: left; background: #F9FAFB; border-bottom: 1px solid #E5E7EB; font-weight: 600; font-size: 0.75rem; color: #6B7280; text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 12px 14px; border-bottom: 1px solid #F3F4F6; font-size: 0.875rem; }
tr:hover td { background: #FAFBFC; }

input:focus, textarea:focus, select:focus { outline: none; border-color: #2D5A5C; box-shadow: 0 0 0 2px rgba(45,90,92,0.1); }
:focus-visible { outline: 2px solid #2D5A5C; outline-offset: 2px; }

.field-label { display: block; font-size: 0.6875rem; font-weight: 600; color: #6B7280; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.field-input { width: 100%; border: 1px solid #D1D5DB; padding: 9px 12px; font-size: 0.8125rem; border-radius: 6px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.field-input::placeholder { color: #C4C8CC; }
.field-hint { font-size: 0.6875rem; color: #9CA3AF; margin-top: 5px; }

.btn-primary { padding: 9px 20px; background: #2D5A5C; color: #fff; font-size: 0.8125rem; font-weight: 500; border-radius: 6px; border: none; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: #244B4D; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary { padding: 9px 20px; background: #F3F4F6; color: #374151; font-size: 0.8125rem; font-weight: 500; border-radius: 6px; border: 1px solid #E5E7EB; cursor: pointer; transition: background 0.15s; }
.btn-secondary:hover { background: #E5E7EB; }
.btn-danger { padding: 9px 20px; background: #DC2626; color: #fff; font-size: 0.8125rem; font-weight: 500; border-radius: 6px; border: none; cursor: pointer; transition: background 0.15s; }
.btn-danger:hover { background: #B91C1C; }
.btn-success { padding: 9px 20px; background: #059669; color: #fff; font-size: 0.8125rem; font-weight: 500; border-radius: 6px; border: none; cursor: pointer; transition: background 0.15s; }
.btn-success:hover { background: #047857; }
.btn-ghost { padding: 6px 12px; background: transparent; color: #2D5A5C; font-size: 0.75rem; font-weight: 600; border-radius: 5px; border: 1px solid #E5E7EB; cursor: pointer; transition: background 0.15s; }
.btn-ghost:hover { background: #F0FDF9; }

.badge { font-size: 0.625rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; display: inline-block; }
.badge-red { background: #FEF2F2; color: #991B1B; }
.badge-orange { background: #FFF7ED; color: #9A3412; }
.badge-blue { background: #EFF6FF; color: #1E40AF; }
.badge-green { background: #F0FDF4; color: #166534; }
.badge-gray { background: #F9FAFB; color: #6B7280; }
.badge-teal { background: #F0FDF9; color: #2D5A5C; }
.badge-purple { background: #FAF5FF; color: #6B21A8; }

.card { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; }
.card-header { padding: 14px 18px; border-bottom: 1px solid #F3F4F6; background: #FAFBFC; }
.card-body { padding: 18px; }
.section-title { font-size: 0.6875rem; font-weight: 700; color: #2D5A5C; text-transform: uppercase; letter-spacing: 0.06em; }

.record-row { padding: 14px 18px; border-bottom: 1px solid #F3F4F6; cursor: pointer; transition: background 0.1s; }
.record-row:hover { background: #FAFBFC; }
.record-row:last-child { border-bottom: none; }

.toast-enter { animation: toastIn 0.25s ease-out; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.radio-card { border: 1px solid #E5E7EB; border-radius: 6px; padding: 12px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.radio-card:hover { border-color: #9CA3AF; }
.radio-card.selected { border-color: #2D5A5C; background: #F0FDF9; }

.checkbox-label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; border-radius: 3px; accent-color: #2D5A5C; }

.divider { height: 1px; background: #F3F4F6; margin: 16px 0; }
.empty-state { padding: 48px 24px; text-align: center; color: #9CA3AF; font-size: 0.875rem; }

/* Shared chrome */
.nav-link { padding: 6px 12px; font-size: 0.75rem; font-weight: 500; color: #6B7280; border-radius: 5px; transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: #F3F4F6; color: #2D5A5C; }
.nav-link.nav-current { background: #F0FDF9; color: #2D5A5C; font-weight: 600; }

.docket-line { position: relative; padding: 0 0 18px 22px; border-left: 1px solid #E5E7EB; }
.docket-line:last-child { border-left-color: transparent; padding-bottom: 0; }
.docket-dot { position: absolute; left: -4.5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #2D5A5C; }

.charge-row { display: grid; grid-template-columns: 1fr 90px 90px 34px; gap: 8px; align-items: end; }
@media (max-width: 640px) { .charge-row { grid-template-columns: 1fr 1fr; } }

.stat { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px 18px; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #2D5A5C; font-family: "Crimson Text", serif; }
.stat-label { font-size: 0.6875rem; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-top: 2px; }

.prose-body { white-space: pre-wrap; font-size: 0.8125rem; color: #4B5563; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}