:root {

  --bg-body: linear-gradient(135deg, #0a0a0f, #1a1a2e);
  --bg-panel: rgba(20, 24, 40, 0.85);
  --bg-card: #1e2235;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);


  --border-glass: #333b55;


  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary: #0ea5e9;
  --tech-blue: #60a5fa;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;


  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;


  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #8b9bb4;
  --text-tertiary: #71717a;


  --radius-card: 16px;
  --radius-sm: 12px;
  --radius-pill: 100px;


  --ease-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg-body);
  background-attachment: fixed;

  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

}

a {
  color: var(--tech-blue);
  text-decoration: none;
  transition: color var(--ease-default);
}

a:hover {
  color: var(--secondary);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-right {
  text-align: right;
}

.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;

  width: 100%;
  max-width: 100vw;

}

@media (min-width: 768px) {
  .layout-container {
    padding: 0 1.5rem;
  }
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .main-grid {
    grid-template-columns: 2fr 1fr;

  }
}

.main-content,
.sidebar-content {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(90deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--ease-default);
}

.brand-badge:hover {
  background: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.glass-panel {
  background: var(--bg-card);

  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 0;

}

.panel-header {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.panel-body {
  padding: 1rem;

}

@media (min-width: 768px) {
  .panel-body {
    padding: 1.5rem;
  }
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;

  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .filter-row {
    display: flex;
    gap: 1.5rem;
  }

  .filter-group {
    flex: 1;
    max-width: 200px;
  }
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.glass-select {
  width: 100%;
  appearance: none;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  cursor: pointer;
  transition: var(--ease-default);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.glass-select:hover {
  background-color: var(--bg-glass-hover);
  border-color: var(--text-muted);
}

.glass-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.data-table-container {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.5rem;

  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;

  white-space: nowrap;

}

.data-table th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

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

.data-table tbody tr {
  transition: background var(--ease-default);
}

.data-table tbody tr:hover {
  background: var(--bg-glass-hover);
}

.data-table td.mono-date {
  font-family: var(--font-mono);
  color: var(--tech-blue);
  white-space: nowrap;
}

.sticky-aside {
  position: sticky;
  top: calc(100vh - 100% - 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.bar-label {
  width: 80px;

  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  box-shadow: 0 0 8px var(--primary-glow);
  border-radius: var(--radius-pill);
  transition: width var(--ease-default);
}

.bar-count {
  width: 30px;
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 10, 15, 0.95);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}