/* =========================
   10-4 System - "Ledger" Design
   ========================= */

:root {
  --tf-bg: #f8fafc;
  --tf-surface: #ffffff;
  --tf-primary: #0f172a;
  --tf-accent: #3b82f6;
  --tf-danger: #ef4444;
  --tf-success: #10b981;
  --tf-warning: #f59e0b;
  --tf-border: #e2e8f0;
  --tf-radius: 12px;
}

.dark {
  --tf-bg: #020617;
  --tf-surface: #0f172a;
  --tf-primary: #f8fafc;
  --tf-accent: #60a5fa;
  --tf-border: #1e293b;
}

.tf-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header Section */
.tf-status-header {
  margin-bottom: 3rem;
  border-left: 4px solid var(--tf-accent);
  padding-left: 1.5rem;
}

.tf-title {
  font-family: 'PT Serif', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--tf-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.tf-subtitle {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

/* Summary Bar */
.tf-summary {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--tf-surface);
  padding: 1rem 1.5rem;
  border-radius: var(--tf-radius);
  border: 1px solid var(--tf-border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.tf-stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #94a3b8;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
}

/* Filing Log (Entries) */
.tf-log {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tf-entry {
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tf-entry:hover {
  transform: translateX(4px);
  box-shadow: 4px 0 0 inset var(--tf-accent), 0 10px 15px -3px rgba(0,0,0,0.05);
}

.entry-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entry-type {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tf-primary);
}

.entry-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
}

.entry-meta span strong {
  color: var(--tf-primary);
}

.points-badge {
  color: var(--tf-danger);
  font-weight: 800;
}

/* Action Buttons */
.btn-tf {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-tf-ack {
  background: var(--tf-success);
  color: white;
}

.btn-tf-ack:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-tf-nav {
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .btn-tf-nav {
  background: #1e293b;
  color: #cbd5e1;
}

.btn-tf-nav:hover {
  background: #e2e8f0;
}

/* Special Themes for Sections */
.theme-purple { border-left-color: #a855f7 !important; }
.theme-amber { border-left-color: #f59e0b !important; }

/* Empty State */
.tf-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--tf-surface);
  border: 2px dashed var(--tf-border);
  border-radius: var(--tf-radius);
  color: #94a3b8;
}

.tf-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Navigation Links Row */
.tf-nav-row {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tf-border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .tf-entry {
    grid-template-columns: 1fr;
  }
}

.status-success {
  color: var(--tf-success) !important;
}

.status-danger {
  color: var(--tf-danger) !important;
}
