*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f5f5f7;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.brand-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.brand-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filters label {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.filters input[type="date"] {
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #f9fafb;
}

button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1120;
  font-weight: 500;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.35);
}

button#downloadBtn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.content {
  flex: 1;
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(55, 65, 81, 0.6), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.card .metric {
  font-size: 1.4rem;
  font-weight: 600;
}

.card .meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.table-section {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(75, 85, 99, 0.7);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.8);
  overflow: auto;
}

.table-section h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

th {
  text-align: left;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.85);
}

tbody tr:hover {
  background: rgba(30, 64, 175, 0.5);
}

.footer {
  padding: 10px 24px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  background: #020617;
}

@media (max-width: 640px) {
  .header {
    align-items: flex-start;
  }
}

