@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --tlv-navy: #0A2540;
  --tlv-blue: #1E40AF;
  --tlv-slate: #64748B;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.tlv-mark {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--tlv-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1E3A8A;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
  background: #fff;
}

.input:focus {
  border-color: var(--tlv-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--tlv-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #1E3A8A;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fff;
  color: #0f172a;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  background: #fff;
}

.chip input {
  display: none;
}

.chip:has(input:checked),
.chip.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
  font-weight: 600;
}

.condition-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.condition-card:has(input:checked),
.condition-card.selected {
  border-color: #93c5fd;
  background: #eff6ff;
}

.condition-card input {
  margin-right: 0.5rem;
}

.photo-preview {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-new { background: #dbeafe; color: #1e40af; }
.badge-in_review { background: #fef3c7; color: #b45309; }
.badge-completed { background: #d1fae5; color: #047857; }

.module-banner {
  font-size: 0.75rem;
  border-radius: 0.65rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.module-banner.manual {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.module-banner.placeholder {
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

.module-banner.api {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.admin-banner {
  background: #7f1d1d;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem;
  text-transform: uppercase;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  display: inline-block;
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

table.data td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

table.data tr:hover td {
  background: #f8fafc;
}

.save-indicator {
  font-size: 0.8rem;
  color: #64748b;
}

.save-indicator.saved { color: #047857; }
.save-indicator.error { color: #b91c1c; }

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #93c5fd;
  background: #eff6ff;
}
