@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&display=swap");

@font-face {
  font-family: "Font Awesome 6 Free";
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: #1a1a1c;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #4c1d95 #17171b;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #17171b;
}

*::-webkit-scrollbar-thumb {
  background: #4c1d95;
  border-radius: 999px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 25%),
    radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.08), transparent 25%),
    #1a1a1c;
  color: #f4f4f5;
}

.fa-icon {
  display: inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-fw {
  width: 1.25em;
  text-align: center;
}

.fa-sm {
  font-size: 0.875rem;
}

.fa-base {
  font-size: 1rem;
}

.fa-lg {
  font-size: 1.125rem;
}

aside {
  background: #1a1a1c;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

header {
  background: rgba(26, 26, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

main {
  background:
    linear-gradient(#1a1a1c, #1a1a1c);
}

.panel {
  background: #262628;
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

.sidebar-brand {
  padding-top: 1.7rem;
  padding-bottom: 1.45rem;
}

.sidebar-brand .brand-mark span {
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.22);
}

.nav-item {
  min-height: 52px;
  color: #8d8d99;
  font-size: 14px;
}

.nav-item .fa-icon {
  opacity: 0.72;
}

.nav-item.active {
  background: #6c33ff;
  color: #ffffff;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(108, 51, 255, 0.22);
}

.nav-item.active .fa-icon,
.nav-item:hover .fa-icon {
  opacity: 1;
}

.promo-card {
  background: linear-gradient(145deg, #7a49ff, #6c33ff 55%, #916cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(108, 51, 255, 0.18);
}

.promo-card .promo-badge {
  background: rgba(42, 18, 87, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-card .promo-button {
  background: rgba(41, 19, 84, 0.78);
}

.promo-card .promo-button:hover {
  background: rgba(34, 15, 73, 0.9);
}

.search-input {
  background: #262628;
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-icon {
  background: #262628;
  border-color: rgba(255, 255, 255, 0.055);
}

.flag-chip {
  background: radial-gradient(circle at 35% 35%, #fda4af, #7f1d1d);
}

.profile-avatar {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #6b7280, #1f2937 60%, #0a0a0a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dashboard-shell {
  padding: 1.2rem 1.35rem 1.45rem;
}

.dashboard-main-grid,
.dashboard-bottom-grid {
  gap: 0.95rem;
}

.chart-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 190px;
  height: auto;
}

.chart-wrap.short {
  min-height: 126px;
}

.chart-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.stat-card {
  min-height: 164px;
  background: #202022;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-card .stat-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.stat-card .stat-value {
  letter-spacing: -0.03em;
}

.metric-row,
.summary-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.products-table thead {
  border-color: rgba(255, 255, 255, 0.055);
}

.products-table th {
  color: #8f90a4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.product-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-progress {
  background: rgba(255, 255, 255, 0.07);
}

.product-badge {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  min-width: 48px;
  display: inline-flex;
  justify-content: center;
}

.map-base {
  fill: #3b3b42;
  opacity: 0.7;
}

.map-country {
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
  cursor: pointer;
}

.map-country:hover {
  transform: scale(1.04);
  opacity: 0.92;
}

.dropdown-menu {
  background: #262628;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-option {
  color: #d8d8df;
}

.header-search {
  width: 334px;
}

.header-tools {
  gap: 0.9rem;
  justify-content: flex-end;
}

.sales-panel,
.visitor-panel,
.revenue-panel,
.satisfaction-panel,
.target-panel,
.products-panel,
.map-panel,
.volume-panel {
  border-radius: 30px;
  height: 100%;
}

.sales-panel {
  min-height: 322px;
}

.visitor-panel {
  min-height: 322px;
}

.visitor-panel .chart-wrap {
  min-height: 216px;
}

.revenue-panel {
  min-height: 402px;
}

.revenue-panel .chart-wrap {
  min-height: 250px;
}

.satisfaction-panel,
.target-panel {
  min-height: 402px;
}

.satisfaction-panel .chart-wrap.short,
.target-panel .chart-wrap.short,
.volume-panel .chart-wrap.short {
  min-height: 150px;
}

.products-panel {
  min-height: 388px;
}

.products-panel .products-table {
  border-collapse: collapse;
  height: 100%;
}

.products-toolbar {
  align-items: flex-start;
}

.products-search {
  flex-shrink: 0;
}

.products-panel tbody td {
  font-size: 15px;
}

.products-panel .overflow-x-auto {
  flex: 1 1 auto;
}

.map-panel {
  min-height: 388px;
}

.map-panel svg {
  height: 226px;
}

/* Leaflet map styling */
#heat-map-container {
  background: #1a1a1c;
  position: relative;
  display: block !important;
  width: 100% !important;
  flex: 1 1 auto;
}

#heat-map-container .leaflet-container {
  background: transparent;
}

#heat-map-container .leaflet-attribution {
  display: none !important;
}

#heat-map-container .leaflet-control-attribution {
  display: none !important;
}

.leaflet-bottom.leaflet-right {
  display: none !important;
}

.leaflet-canvas-container canvas {
  z-index: 250 !important;
}

.leaflet-control {
  background: transparent;
  border: none;
}

.leaflet-pane {
  z-index: 200;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 300;
}

.leaflet-shadow-pane {
  z-index: 300;
}

.leaflet-marker-pane {
  z-index: 400;
}

.leaflet-tooltip-pane {
  z-index: 600;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-zoom-control {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #262628;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.leaflet-zoom-control a {
  background: transparent;
  color: #f4f4f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-zoom-control a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.volume-panel {
  min-height: 388px;
}

.stat-grid {
  gap: 0.85rem;
}

.panel h2,
.panel h3 {
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

@media (min-width: 1280px) {
  aside {
    width: 266px;
  }
}
