/* ============================================================
   HISTORY PAGE STYLES
   ============================================================ */

.container { padding-top: 36px; padding-bottom: 60px; }

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.history-header h1 { font-size: 26px; }

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon { font-size: 44px; margin-bottom: 16px; }
.empty-state h3 { font-size: 19px; margin-bottom: 8px; }

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

.history-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
  gap: 16px;
  flex-wrap: wrap;
}

.history-card:hover { border-color: var(--border-strong); }

.history-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.history-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.history-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.history-card-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.history-card-score {
  text-align: center;
  min-width: 70px;
}

.history-card-score-num {
  font-family: var(--font-serif);
  font-size: 20px;
}

.history-card-score-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-card-status {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.status-completed { background: var(--success-bg); color: var(--success); }
.status-processing { background: var(--gold-bg); color: #8a6508; }
.status-pending { background: var(--paper-2); color: var(--ink-muted); }
.status-failed { background: var(--danger-bg); color: var(--danger); }
