/* Custom Styles for the Trade Statistics Page */

:root {
  --hero-bg-gradient: linear-gradient(135deg, #f4fcf6 0%, #fffdf4 50%, #f4fcf6 100%);
  --hero-border-color: #e2e8f0;
  --hero-text-main: #006837;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --secondary: #006837;
  --secondary-glow: rgba(0, 104, 55, 0.05);
  --primary: #d97706;
  --primary-glow: rgba(217, 119, 6, 0.05);
}

/* ==========================================================================
   HERO BANNER SECTION (UNTOUCHED)
   ========================================================================== */
.stats-hero-banner {
  position: relative;
  background: url('../assets/images/banners/trade_hero_bg.jpg') center right / cover no-repeat;
  padding: 95px 0 75px;
  text-align: left;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -20px 30px rgba(15, 23, 42, 0.4);
  animation: boatSurfing 14s ease-in-out infinite alternate;
}

@keyframes boatSurfing {
  0% { background-position: 100% 50%; }
  50% { background-position: 97% 53%; }
  100% { background-position: 100% 47%; }
}

.stats-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.10) 80%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.stats-hero-banner .container {
  position: relative;
  z-index: 2;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: #ffc107;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 193, 7, 0.15);
}

.hero-tagline-badge .badge-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ffc107;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffc107;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.stats-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.stats-hero-title .highlight-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block !important;
  white-space: nowrap !important;
}

.stats-hero-desc {
  color: rgba(241, 245, 249, 0.95) !important;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  max-width: 100%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-stats-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.hero-stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-stat-chip i {
  font-size: 1.1rem;
  color: #fbbf24;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, #006837 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(4, 120, 87, 0.6);
}

/* Water Waves Overlay */
.ocean-water-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.waves-svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.wave-parallax > use {
  animation: waveMove 22s cubic-bezier(.55,.5,.45,.5) infinite;
}
.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes waveMove {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}


/* ==========================================================================
   FULL-WIDTH FLUID DASHBOARD SECTION (NO MAX-WIDTH LOCK)
   ========================================================================== */

.trade-dashboard-wrapper {
  background: #f8fafc;
  padding: 40px 0 60px;
  color: #0f172a;
  width: 100%;
  overflow-x: hidden;
}

.trade-dashboard-wrapper .container-fluid {
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(15px, 2.5vw, 40px);
  padding-right: clamp(15px, 2.5vw, 40px);
}

/* 1. Header Filter Bar */
.dashboard-filter-header {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  padding: 24px 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.dashboard-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.dashboard-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 0;
}

.filter-controls-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-select-box:focus, .filter-select-box:hover {
  border-color: #006837;
  box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
  outline: none;
}


/* 2. Top 5 KPI Metrics Cards Row */
.kpi-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 25px;
  width: 100%;
}

.kpi-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: #006837;
  box-shadow: 0 12px 30px rgba(0, 104, 55, 0.12);
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-icon-green { background: #dcfce7; color: #16a34a; }
.kpi-icon-blue { background: #e0f2fe; color: #0284c7; }
.kpi-icon-red { background: #ffe4e6; color: #e11d48; }
.kpi-icon-orange { background: #ffedd5; color: #ea580c; }

.kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 10px;
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.kpi-tag-up { color: #16a34a; }
.kpi-tag-down { color: #e11d48; }

.sparkline-svg {
  width: 60px;
  height: 24px;
}


/* 3. Main Dashboard Grid (3 Columns: Left Countries, Center Chart, Right Sticky Key Insights) */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 310px 1fr 340px;
  gap: 22px;
  margin-bottom: 25px;
  width: 100%;
}

/* Left Column: Arab Countries List */
.arab-countries-panel {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 540px;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.panel-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.country-search-box {
  position: relative;
  margin-bottom: 12px;
}

.country-search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.82rem;
  background: #f8fafc;
  transition: all 0.25s ease;
}

.country-search-box input:focus {
  border-color: #006837;
  background: #ffffff;
  outline: none;
}

.country-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.countries-scroll-list {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.countries-scroll-list::-webkit-scrollbar {
  width: 5px;
}
.countries-scroll-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.country-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  background: #ffffff;
}

.country-list-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.country-list-item.active {
  background: #ecfdf5;
  border-color: #006837;
}

.country-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag-icon {
  font-size: 1.2rem;
  border-radius: 4px;
}

.country-name-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.country-val-box {
  text-align: right;
}

.country-trade-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #006837;
}

.country-change-tag {
  font-size: 0.68rem;
  font-weight: 700;
}

.tag-up { color: #16a34a; }
.tag-down { color: #e11d48; }


/* Middle Column: Trade Volume Chart Panel */
.chart-main-panel {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 540px;
}

.chart-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.chart-controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-legend-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.dot-export { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; }
.dot-import { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; }

.chart-mode-switch {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.mode-btn {
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: #006837;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 104, 55, 0.3);
}

.chart-canvas-container {
  position: relative;
  flex-grow: 1;
  width: 100%;
  height: 400px;
}


/* Right Column: Key Insights Card (With AI Header Banner & Scrollable List) */
.key-insights-panel {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 540px;
  position: relative;
}

/* Sticky Header with AI Banner Image */
.insights-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 22px 20px;
  background: linear-gradient(135deg, rgba(8, 15, 26, 0.85) 0%, rgba(0, 104, 55, 0.90) 100%),
              url('{{ asset("website/assets/images/banners/trade_opportunity.png") }}') center center / cover no-repeat;
  color: #ffffff;
  border-bottom: 2px solid rgba(251, 191, 36, 0.4);
}

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

.insights-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 0;
}

.insights-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.insights-subtext {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Scrollable Insights Content */
.insights-scroll-body {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-scroll-body::-webkit-scrollbar {
  width: 5px;
}
.insights-scroll-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.insight-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.25s ease;
}

.insight-item-card:hover {
  background: #ffffff;
  border-color: #006837;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 104, 55, 0.08);
}

.insight-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 104, 55, 0.1);
  color: #006837;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.insight-text {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 0;
}

.insight-text strong {
  color: #0f172a;
}


/* 4. Bottom Grid Cards Row (3 Sub-Cards) */
.bottom-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 25px;
  width: 100%;
}

.analytics-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 420px;
}

.analytics-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.analytics-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0;
}

/* Donut chart panel */
.donut-chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Top Trade Partners List */
.partners-toggle-switch {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 8px;
}

.partner-toggle-btn {
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.partner-toggle-btn.active {
  background: #006837;
  color: #ffffff;
}

.partners-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.partner-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-flag-name {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 120px;
  flex-shrink: 0;
}

.partner-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.partner-bar-wrapper {
  flex-grow: 1;
  background: #f1f5f9;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.partner-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #006837 100%);
  border-radius: 10px;
}

.partner-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #006837;
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}


/* Export & Import Dual Column Card */
.dual-product-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
}

.product-column-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.product-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-export { color: #16a34a; }
.title-import { color: #2563eb; }

.product-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  padding: 5px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
}

.product-percent {
  font-weight: 800;
  color: #0f172a;
}


/* 5. Bottom Real-Time Trade Flow Ticker Banner */
.trade-flow-banner {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.flow-left-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flow-globe-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 104, 55, 0.1);
  color: #006837;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.flow-text-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.flow-text-sub {
  font-size: 0.82rem;
  color: #64748b;
}

.flow-stats-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-chip {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 16px;
  text-align: center;
}

.flow-chip-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #006837;
  line-height: 1;
}

.flow-chip-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}


/* Infrastructure Corridors Section Card */
.infra-corridors-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  padding: 30px 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  margin-bottom: 25px;
}

.infra-subtitle {
  color: #006837;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.infra-title {
  color: #0f172a;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.infra-desc {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 400;
}

.infra-images-grid {
  display: flex;
  gap: 16px;
  align-items: center;
}

.infra-img-box {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  height: 210px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.infra-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.infra-img-box img.fit-contain {
  object-fit: contain;
  padding: 12px;
}


/* Responsive Layout Queries for All Device Breakpoints */
@media (min-width: 1600px) {
  .dashboard-main-grid {
    grid-template-columns: 330px 1fr 370px;
    gap: 26px;
  }
}

@media (max-width: 1399px) and (min-width: 1024px) {
  .kpi-metrics-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
  .dashboard-main-grid {
    grid-template-columns: 280px 1fr 310px;
    gap: 18px;
  }
  .bottom-analytics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .kpi-metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .bottom-analytics-grid {
    grid-template-columns: 1fr;
  }
  .infra-images-grid {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .trade-dashboard-wrapper .container-fluid {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dashboard-filter-header {
    padding: 18px 20px;
  }
  .kpi-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bottom-analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .infra-corridors-card {
    padding: 20px;
  }
  .infra-images-grid {
    flex-direction: column;
    gap: 12px;
  }
  .infra-img-box {
    width: 100%;
    height: 180px;
  }
  .trade-flow-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .flow-stats-chips {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .kpi-metrics-row {
    grid-template-columns: 1fr;
  }
  .dual-product-columns {
    grid-template-columns: 1fr;
  }
}
