/* CSS Design System for Командиры Провала - Раздел Потери */
:root {
  --bg-main: #0a0a0c;
  --bg-card: #121318;
  --bg-card-hover: #1a1c24;
  --border-color: #242733;
  --text-main: #f0f2f5;
  --text-muted: #8c93a6;
  --accent-red: #ff3333;
  --accent-red-hover: #e62e2e;
  --accent-red-glow: rgba(255, 51, 51, 0.25);
  --status-dead: #ff4d4d;
  --status-missing: #ffaa00;
  --status-captured: #33b5e5;
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-main: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Navbar */
._header {
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 1.5rem;
}

._headerInner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

._logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

._logoRed {
  color: var(--accent-red);
}

._nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

._nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

._nav a:hover, ._nav a.active {
  color: #fff;
}

._btnWarn {
  background: var(--accent-red);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Hero Section */
.hero-casualties {
  background: linear-gradient(180deg, rgba(255, 51, 51, 0.08) 0%, rgba(10, 10, 12, 0) 100%),
              radial-gradient(circle at 50% 20%, rgba(255, 51, 51, 0.05) 0%, transparent 60%);
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 51, 51, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 51, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent-red);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 780px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
}

.stat-item dt {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-item dd {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

/* Controls & View Switcher */
.controls-section {
  max-width: 1300px;
  margin: 2rem auto 1rem;
  padding: 0 1.5rem;
}

.view-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-red-glow);
}

/* Filter Bar */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

.search-box input, .filter-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
}

.search-box input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--accent-red);
}

/* Map Styling */
#map-view-container {
  display: block !important;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

#map-container {
  display: block !important;
  height: 620px !important;
  width: 100% !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: #0a0a0c;
  position: relative;
}

.leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

/* Magic Dark Mode for Map Tiles (disabled temporarily for debug) */
/*
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
*/

.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
}

.leaflet-popup-tip {
  background: var(--bg-card) !important;
}

.popup-content h4 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.popup-count {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 1.3rem;

  margin-bottom: 0.5rem;
}

.popup-btn {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;

  width: 100%;
}

/* Casualties Cards Grid */
.grid-section {
  max-width: 1300px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

/* Grid Layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Premium Casualty Card (Glassmorphism & Hover) */
.casualty-card {
  background: rgba(18, 19, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.casualty-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 51, 51, 0.1);
  border-color: rgba(255, 51, 51, 0.3);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.casualty-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.status-dead {
  background: rgba(255, 51, 51, 0.85);
  border: 1px solid rgba(255, 51, 51, 0.4);
}

.status-missing {
  background: rgba(255, 170, 0, 0.85);
  border: 1px solid rgba(255, 170, 0, 0.4);
}

.verified-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2;
  background: rgba(76, 209, 55, 0.85);
  border: 1px solid rgba(76, 209, 55, 0.4);
}

.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff;
  line-height: 1.3;
}

.card-meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.card-meta-line strong {
  color: var(--text-main);
}

.card-snippet {
  font-size: 0.85rem;
  color: #a0a7ba;
  margin-top: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  line-height: 1.4;
}

.card-footer-btn {
  margin-top: auto;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.card-footer-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 4px 15px var(--accent-red-glow);
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);

  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;

  padding: 2rem;
  position: relative;

  box-shadow: var(--shadow-main);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;

  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;

  line-height: 32px;

  text-align: center;
}

.modal-close:hover {
  background: rgba(255, 51, 51, 0.9);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.modal-close {
  transition: all 0.2s ease;
}

/* Premium Modal Profile Details */
.modal-profile {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.modal-photo-wrap {
  width: 180px;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #18191f;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-photo-wrap:hover img {
  transform: scale(1.05);
}

.modal-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.modal-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.2rem 0;
}

.modal-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.modal-badge.status {
  background: rgba(255, 51, 51, 0.85);
  border: 1px solid rgba(255, 51, 51, 0.3);
}

.modal-badge.status.missing {
  background: rgba(255, 170, 0, 0.85);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.modal-badge.verified {
  background: rgba(76, 209, 55, 0.85);
  border: 1px solid rgba(76, 209, 55, 0.3);
}

.modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-meta-item span.icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.modal-meta-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.modal-circumstances {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: #d0d5e0;
  line-height: 1.6;
  position: relative;
}

.modal-circ-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  padding-left: 0.6rem;
  border-left: 3px solid var(--accent-red);
}

.modal-circ-text {
  margin: 0;
  white-space: pre-wrap;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  background: #070709;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Added Map & Search Improvements --- */

/* Search Box Hint */
.search-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Unspecified Region Banner */
.unspecified-banner {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(18, 19, 24, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 480px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.unspecified-banner:hover {
  border-color: rgba(255, 51, 51, 0.3);
}

.unspecified-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.unspecified-icon {
  font-size: 1.5rem;
}

.unspecified-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.unspecified-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
  line-height: 1.3;
}

.unspecified-desc strong {
  color: var(--accent-red);
}

.unspecified-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.unspecified-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 4px 10px var(--accent-red-glow);
}

@media (max-width: 768px) {
  .unspecified-banner {
    position: static;
    margin: 1rem 0 0;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .unspecified-btn {
    text-align: center;
  }
}

/* Map Legend */
.map-legend {
  background: rgba(18, 19, 24, 0.95) !important;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: var(--shadow-main);
  font-family: var(--font-family);
  line-height: 1.5;
}

.map-legend h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.map-legend-item:last-child {
  margin-bottom: 0;
}

.map-legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Reset View Control Button */
.leaflet-control-reset {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: var(--shadow-main);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaflet-control-reset:hover {
  background: var(--bg-card-hover) !important;
  color: var(--accent-red) !important;
  border-color: rgba(255, 51, 51, 0.3) !important;
}

/* Demo Catalog Warning/Notice */
.catalog-notice {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1 / -1;
  color: #ffaa00;
  font-size: 0.92rem;
  font-weight: 500;
}

.catalog-notice-icon {
  font-size: 1.25rem;
}

.catalog-notice-text {
  line-height: 1.4;
}

.catalog-notice-text strong {
  color: #fff;
}

/* --- Map Polygon Aesthetics --- */
.leaflet-interactive {
  transition: fill-opacity 0.2s ease, stroke-width 0.15s ease, stroke 0.15s ease, fill 0.2s ease;
  outline: none;
}

/* Customizing Popup Styles for Choropleth Map */
.leaflet-popup-content-wrapper {
  box-shadow: var(--shadow-main) !important;
}

.popup-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

/* Analytics Dashboard */
.analytics-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.kpi-card {
  background: rgba(18, 19, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.kpi-title {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.kpi-value {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.kpi-card.verified .kpi-value {
  color: #4cd137;
}

.kpi-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: rgba(18, 19, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.analytics-card-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  padding-left: 0.6rem;
  border-left: 3px solid var(--accent-red);
}

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-chart-label {
  width: 130px;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-chart-track {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-chart-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #b31b1b, #ff3333);
  width: 0;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.3);
}

.bar-chart-fill.verified-fill {
  background: linear-gradient(90deg, #1b5e20, #4cd137);
  box-shadow: 0 0 8px rgba(76, 209, 55, 0.3);
}

.bar-chart-fill-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #1b5e20, #4cd137);
  width: 0;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.bar-chart-value {
  width: 80px;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
  text-align: right;
}

/* Pagination Styling */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem auto 1rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  width: 100%;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  user-select: none;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

.pagination-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red-glow);
  pointer-events: none;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  user-select: none;
}



