/* History Page */
.history-header { margin-bottom: 32px; }
.history-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.history-subtitle { color: var(--text-secondary); font-size: 15px; }

.history-list { display: flex; flex-direction: column; gap: 12px; }

.history-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.history-card:hover { border-color: var(--teal); transform: translateY(-1px); }

.history-score {
  font-size: 32px;
  font-weight: 800;
  min-width: 60px;
  text-align: center;
}

.history-info { flex: 1; min-width: 0; }
.history-url { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.history-meta { font-size: 12px; color: var(--text-muted); word-break: break-all; margin-bottom: 6px; }
.history-scores {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}
.history-scores span { font-weight: 600; }

.history-date { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.history-actions { display: flex; gap: 6px; }
.history-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.history-btn.pdf:hover { border-color: var(--teal); color: var(--teal); }
.history-btn.delete:hover { border-color: var(--red); color: var(--red); }

.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }
.btn-audit-page {
  display: inline-block;
  padding: 12px 28px;
  background: var(--teal);
  color: #060d18;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-audit-page:hover { box-shadow: 0 4px 16px var(--teal-glow); }

@media (max-width: 600px) {
  .history-card { flex-wrap: wrap; gap: 12px; }
  .history-date { width: 100%; }
  .history-actions { width: 100%; }
}
