﻿:root {
  --history-bg: #0d1014;
  --history-card: rgba(18, 22, 28, 0.78);
  --history-border: rgba(255, 255, 255, 0.08);
  --history-text: rgba(255, 255, 255, 0.9);
  --history-muted: rgba(255, 255, 255, 0.6);
  --history-accent: #ffd66b;
}

[data-theme="light"] {
  --history-bg: #f5f6f9;
  --history-card: rgba(255, 255, 255, 0.9);
  --history-border: rgba(20, 24, 31, 0.12);
  --history-text: rgba(10, 12, 15, 0.9);
  --history-muted: rgba(10, 12, 15, 0.65);
  --history-accent: #ff8a3d;
}

.history-page {
  background: var(--history-bg);
  color: var(--history-text);
  min-height: 100vh;
}

.history-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8vw 10px 5vw;
}


.history-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.history-nav {
  display: flex;
  gap: 18px;
  font-family: "DM Sans", sans-serif;
}

.history-nav a {
  color: var(--history-muted);
  text-decoration: none;
  font-weight: 500;
}

.history-nav a.active {
  color: var(--history-text);
}

.history-main {
  padding: 20px 5vw 80px;
}

.history-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.history-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.history-sub {
  color: var(--history-muted);
  max-width: 520px;
}

.history-meta .meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--history-card);
  border: 1px solid var(--history-border);
  font-family: "Space Mono", monospace;
}

.history-filters {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--history-border);
  background: var(--history-card);
  color: var(--history-text);
  font-family: "DM Sans", sans-serif;
}

.filter-select {
  appearance: none;
}

.history-table-wrap {
  border: 1px solid var(--history-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--history-card);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", sans-serif;
}

.history-table thead {
  background: rgba(255, 255, 255, 0.04);
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--history-border);
  font-size: 14px;
}

.history-table td a {
  color: var(--history-accent);
  text-decoration: none;
}

.history-row.hidden {
  display: none;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--history-muted);
}

.empty-state-icon {
  font-size: 2rem;
  color: var(--history-accent);
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .history-filters {
    grid-template-columns: 1fr;
  }

  .history-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-table th:nth-child(4),
  .history-table td:nth-child(4),
  .history-table th:nth-child(7),
  .history-table td:nth-child(7) {
    display: none;
  }
}
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 10px 0;
  color: var(--history-muted);
  font-family: "DM Sans", sans-serif;
}

.page-controls {
  display: flex;
  gap: 10px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--history-border);
  background: var(--history-card);
  color: var(--history-text);
  text-decoration: none;
  font-size: 0.8rem;
}

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

.page-info {
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .history-pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}






