
/* ===== Page background ===== */
body {
  background-color: #0f131a;
  color: #d6d9df;
}

/* ===== Section wrapper ===== */
.drawdown-section {
  margin-top: 2rem;
  padding: 1.2rem;
  background: #141a24;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

/* ===== Headings ===== */
.drawdown-section h2 {
  margin-bottom: 1rem;
  font-weight: 500;
  color: #e4e7ec;
}

/* ===== Table ===== */
.drawdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Header */
.drawdown-table thead {
  background: #1b2230;
}

.drawdown-table th {
  padding: 0.65rem 0.8rem;
  text-align: right;
  font-weight: 500;
  color: #9aa3b2;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Cells */
.drawdown-table td {
  padding: 0.6rem 0.8rem;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}


/* First column left aligned */
.drawdown-table th:first-child,
.drawdown-table td:first-child {
  text-align: left;
}

/* Row hover */
.drawdown-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

/* Positive / Negative */
.drawdown-table tbody tr.positive {
  color: #7ddc9a;
}

.drawdown-table tbody tr.negative {
  color: #e58b8b;
}
.chart-container {
  position: relative;
  height: 320px;   /* 👈 adjust to taste */
  width: 100%;
}
.drawdown-table tbody tr.positive,
.drawdown-table tbody tr.negative {
  color: #d6d9df; /* neutral text */
}
.cell-positive {
  color: #7ddc9a;
  font-weight: 500;
}

.cell-negative {
  color: #e58b8b;
  font-weight: 500;
}

.cell-neutral {
  color: #9aa3b2;
}
.sim-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sim-controls label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #9aa3b2;
}

.sim-controls input,
.sim-controls select {
  background: #0f131a;
  border: 1px solid rgba(255,255,255,0.1);
  color: #d6d9df;
  padding: 0.4rem;
  border-radius: 6px;
}

.sim-controls button {
  background: #1e293b;
  color: #e4e7ec;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.sim-controls button:hover {
  background: #334155;
}

/* top section percantage fund lasts */
.confidence-box {
  background: linear-gradient(135deg, #0f2a44, #123b5c);
  border-radius: 14px;
  padding: 20px 24px 20px 30px; /* ⬅ extra space on the left */
  color: #eaf4ff;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}


.confidence-header {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.confidence-main {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.confidence-sub {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.confidence-detail {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* === Confidence box state colours (force apply) === */
.confidence-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 14px 0 0 14px;
  background: transparent;
}
.confidence-box.good::before {
  background: linear-gradient(
    180deg,
    #6ee7d8,
    #4fd1c5
  );
}

.confidence-box.ok::before {
  background: #f6ad55;
}

.confidence-box.risk::before {
  background: #fc8181;
}

