:root {
  --bg-color: #0d1117;
  --panel-bg: rgba(22, 27, 34, 0.7);
  --accent-color: #58a6ff;
  --text-color: #c9d1d9;
  --text-dim: #8b949e;
  --border-color: rgba(240, 246, 252, 0.1);
  --success-color: #2ea043;
  --glass-effect: blur(12px) saturate(180%);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

.single-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-effect);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 2rem;
  position: sticky;
  top: 1rem;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.badge {
  font-size: 0.7rem;
  background: var(--accent-color);
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 8px;
}

.search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 3rem;
}

#global-search {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#global-search:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
  transform: scale(1.02);
}

.status-badge {
  background: rgba(46, 160, 67, 0.15);
  color: var(--success-color);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  border: 1px solid var(--success-color);
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.mini-card {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-effect);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-5px);
}

.mini-card .label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mini-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.glass-section {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-effect);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.8rem;
  color: #fff;
}

.count-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.scroll-table {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  position: sticky;
  top: 0;
  z-index: 10;
}

td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-color);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.highlight {
  color: var(--accent-color);
  font-weight: 600;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 1024px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .single-page {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    position: relative;
    top: 0;
  }

  .logo {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }

  .search-container {
    margin: 0;
    width: 100%;
    max-width: none;
  }

  .status-badge {
    display: none;
    /* Hide on very small screens to save space */
  }

  .stats-overview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .glass-section {
    padding: 1.2rem;
    border-radius: 16px;
  }

  td,
  th {
    padding: 0.8rem;
    font-size: 0.85rem;
  }

  .mini-card .value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  #global-search {
    padding: 0.8rem 1rem;
  }
}