/* Core layout tweaks */
html, body { height: 100%; }
body { background-color: #f5f6f8; }

/* Card polish */
.card { border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.card-header { border-bottom: 1px solid rgba(17,24,39,0.08); }

/* Typography rhythm */
.card-title { letter-spacing: -0.01em; }
.page-header, .app-content h1, .app-content h2 { letter-spacing: -0.01em; }

/* Buttons */
.btn-primary { background-color: #111827; border-color: #111827; }
.btn-primary:hover { background-color: #0b1220; border-color: #0b1220; }
.btn { border-radius: 8px; }

/* Spacing */
.main-content.app-content { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }

/* Tables */
.table thead th { font-weight: 600; }

/* Switcher panel */
#switcher-canvas .offcanvas-header { border-bottom: 1px solid rgba(17,24,39,0.08); }

/* Dashboard KPI balance (Row-1) */
.dash1-card { /* ensure consistent visual height across top KPI cards */
  min-height: 150px;
}
@media (min-width: 1200px) {
  .dash1-card { min-height: 160px; }
}
.dash1-card .card-body { display: flex; align-items: center; }
.dash1-card .card-body .row { align-items: center; }

/* Harmonize small chart heights inside KPI cards */
#eth-chart, #dash-chart, #da-chart {
  height: 80px;
  max-height: 80px;
}

/* Disable hover tooltips/popovers and chart hover cards */
.tooltip,
.popover,
.bs-tooltip-auto,
.bs-tooltip-top,
.bs-tooltip-bottom,
.bs-tooltip-start,
.bs-tooltip-end {
  display: none !important;
  pointer-events: none !important;
}

/* Hide ApexCharts tooltips (hover value popups) */
.apexcharts-tooltip,
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  display: none !important;
}

/* Hide ECharts tooltips if present */
.echarts-tooltip,
.echarts-tooltip-wrap,
.echarts-tooltip__content {
  display: none !important;
}

/* Prevent hover flashes on chart series */
.apexcharts-series,
.apexcharts-datalabels,
.apexcharts-active {
  pointer-events: none !important;
}

/* Allow charts to render on dashboard preview */
/* (Previously hidden globally.) */

/* Keep card rows visually balanced when charts are removed */
.card .card-body {
  min-height: 140px;
}

/* Equal-height cards across rows */
.row > [class*="col-"] { display: flex; }
.row > [class*="col-"] > .card { display: flex; flex-direction: column; height: 100%; }
.row > [class*="col-"] > .card .card-body { flex: 1 1 auto; }

/* Uniform baseline card height and compact spacing */
.card { min-height: 160px; margin-bottom: 12px; }
/* Compact inner padding for denser layout */
.card-body { padding: 12px; }

/* Compact spacing between cards and sections */
.row { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
.container .row + .row,
.container-fluid .row + .row,
.main-content .row + .row,
.app-content .row + .row {
  margin-top: 0.75rem;
}


/* Nicely styled badges for statuses */
.badge { border-radius: 999px; padding: 0.35rem 0.6rem; font-weight: 500; }
.badge.bg-warning { background-color: #facc15 !important; }
.badge.bg-success { background-color: #22c55e !important; }
.badge.bg-secondary { background-color: #94a3b8 !important; }

/* Compact table rows and better alignment */
.table.table-sm tbody td { padding-top: 0.5rem; padding-bottom: 0.5rem; vertical-align: middle; }

/* Recent Transactions feed — polished layout */
.recent-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.recent-feed-item:hover {
  background: rgba(0, 0, 0, 0.035);
}
.recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.recent-avatar.buy {
  background: linear-gradient(135deg, #1db954 0%, #16a34a 100%);
}
.recent-avatar.withdrawal {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.recent-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.recent-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--chip-bg, #f1f3f5);
  color: var(--chip-fg, #475569);
}
.chip.buy { --chip-bg: #e8f8ee; --chip-fg: #16784e; }
.chip.withdrawal { --chip-bg: #fdecec; --chip-fg: #b12a2a; }
.chip.method { background: #eef2f7; color: #3d4b61; }
.badge.badge-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}
.recent-amount {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.recent-sub {
  color: #8692a6;
  font-size: 11px;
}
.recent-sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 6px 0;
}

/* Compact spacing v2: further tighten vertical rhythm */
.app-content .page-header { margin-bottom: 0.75rem; }
.container .row + .row,
.container-fluid .row + .row,
.main-content .row + .row,
.app-content .row + .row { margin-top: 0.5rem; }
.row { --bs-gutter-y: 0.5rem; }
.card { margin-bottom: 8px; }
.card .card-body { min-height: 130px; }

/* ----------------------------------------------
   Dashboard presentation fixes (index.html)
   ---------------------------------------------- */
/* Tighter, cleaner page header and breadcrumb spacing */
.app-content .page-header {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(17,24,39,0.06);
}
.app-content .breadcrumb {
  margin: 0;
}

/* Consistent card header sizing and spacing */
.card-header {
  padding: 10px 12px;
}
.card-title {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  margin: 0;
}

/* Harmonize card body spacing */
.card-body {
  padding: 14px;
}

/* Improve table readability */
.table thead th {
  background: #f8fafc;
  color: #334155;
}
.table tbody tr:nth-child(odd) {
  background: #fbfdff;
}

/* Reduce visual noise on cards */
.card.custom-card,
.card {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Sidebar polish after menu removals */
.app-sidebar {
  border-right: 1px solid rgba(17,24,39,0.06);
}
.side-menu .slide__category .category-name {
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0;
}
.side-menu .slide .side-menu__item,
.side-menu .slide .side-menu__label {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Compact gutters for dense dashboard layouts */
.container .row,
.container-fluid .row,
.main-content .row,
.app-content .row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

/* Make KPI tiles uniform after card removals */
.dash1-card {
  min-height: 160px;
}

/* Hide demo switcher icon if present (does not affect functionality) */
.demo-settings {
  display: none !important;
}