/* AviKite Trading Journal — Custom Styles */

body {
  background-color: #1a1a2e;
  min-height: 100vh;
}

.navbar {
  background-color: #16213e !important;
}

.card-dark {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
}
.card-dark .card-header {
  background: transparent;
  border-bottom: 1px solid #334155;
  font-size: 0.85rem;
  color: #94a3b8;
}

.cursor-pointer { cursor: pointer; }
.table-dark { --bs-table-bg: transparent; }

/* ─── KPI Cards ─── */
.kpi-title {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Gauge rings (SVG circular progress) */
.gauge-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gauge-ring svg { transform: rotate(-90deg); }
.gauge-bg { stroke: #334155; }
.gauge-good .gauge-fg { stroke: #22c55e; }
.gauge-bad .gauge-fg { stroke: #ef4444; }
.gauge-label, .gauge-sub {
  font-size: 0.6rem;
  line-height: 1;
}

/* Win/Loss bar */
.wl-bar {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.7rem;
  height: 22px;
}
.wl-win {
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  min-width: 30px;
}
.wl-loss {
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  min-width: 30px;
}

/* Score progress bar */
.score-bar {
  background: #334155;
  border-radius: 5px;
}

/* ─── Calendar Heatmap ─── */
.cal-wrapper {
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.cal-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 28px;
}
.cal-dlabel {
  width: 28px;
  height: 11px;
  font-size: 9px;
  color: #64748b;
  line-height: 11px;
}
.cal-cols {
  display: flex;
  gap: 2px;
}
.cal-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-c {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  cursor: default;
}
.c0  { background: #1e293b; }
.c2  { background: #166534; }
.c3  { background: #22c55e; }
.c4  { background: #4ade80; }
.c-1 { background: #991b1b; }
.c-2 { background: #ef4444; }
.ctoday { outline: 1px solid #fff; outline-offset: -1px; }

.cal-months {
  position: relative;
  height: 16px;
  margin-bottom: 4px;
}
.cal-mlabel {
  font-size: 9px;
  color: #64748b;
}

/* Calendar legend */
.cal-legend {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  vertical-align: middle;
}
.cal-legend.cal-neutral { background: #1e293b; border: 1px solid #334155; }
.cal-legend.cal-small-win { background: #166534; }
.cal-legend.cal-med-win { background: #22c55e; }
.cal-legend.cal-big-win { background: #4ade80; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.badge { font-weight: 500; }

@media (max-width: 768px) {
  .table-responsive { font-size: 0.85rem; }
  .cal-c { width: 9px; height: 9px; }
}

