/* ===== DASHBOARD — TRADE ZELLA STYLE ===== */

/* Add Trade Button */
.add-trade-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.add-trade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ===== DASH HEADER ===== */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.dash-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.dash-sync {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dash-pnl-block { text-align: right; }

.dash-pnl-label {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.dash-trade-count {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--text3);
}

.dash-pnl-value {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--green);
}

.dash-pnl-value.negative { color: var(--red); }

/* ===== QUICK STATS BAR ===== */
.quick-stats {
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.qs-item {
  padding: 12px 20px;
  flex-shrink: 0;
}

.qs-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  white-space: nowrap;
}

.qs-value {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.qs-value.green { color: var(--green); }
.qs-value.red { color: var(--red); }
.qs-value.purple { color: var(--accent); }

.qs-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== CALENDAR ===== */
.calendar-section {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cal-nav-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
}

.cal-nav-btn:hover { background: var(--bg3); border-color: var(--accent); }

.cal-month-label {
  font-size: 16px;
  font-weight: 800;
  min-width: 140px;
}

.month-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.month-stat-label { font-size: 11px; color: var(--text3); }
.month-stat-value { font-size: 13px; font-weight: 700; }
.month-stat-value.green { color: var(--green); }
.month-stat-value.red { color: var(--red); }

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
}

.cal-cell {
  min-height: 80px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  padding: 8px;
  position: relative;
  transition: all 0.15s;
  cursor: default;
}

.cal-cell.empty {
  background: transparent;
  border-color: transparent;
}

.cal-cell.has-trades {
  cursor: pointer;
}

.cal-cell.has-trades:hover {
  border-color: rgba(108,99,255,0.4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.cal-cell.profitable {
  background: rgba(0, 212, 170, 0.06);
  border-color: rgba(0, 212, 170, 0.2);
}

.cal-cell.profitable:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.4);
}

.cal-cell.losing {
  background: rgba(255, 77, 109, 0.06);
  border-color: rgba(255, 77, 109, 0.2);
}

.cal-cell.losing:hover {
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.4);
}

.cal-cell.today {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent);
}

.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.cal-cell.today .cal-day-num {
  color: var(--accent);
  font-weight: 800;
}

.cal-pnl {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cal-pnl.pos { color: var(--green); }
.cal-pnl.neg { color: var(--red); }

.cal-meta {
  font-size: 10px;
  color: var(--text3);
  line-height: 1.5;
}

.cal-win-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
}

.cal-win-dot.green { background: var(--green); }
.cal-win-dot.red { background: var(--red); }

/* ===== BOTTOM ROW ===== */
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.dash-chart {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border);
  padding: 20px 24px;
}

.dash-recent {
  border-radius: 0;
  border: none;
}

.dash-recent .table-header { padding: 16px 20px; }
.dash-recent td, .dash-recent th { padding: 10px 14px; }

@media (max-width: 900px) {
  .quick-stats { flex-wrap: wrap; }
  .dash-bottom { grid-template-columns: 1fr; }
  .dash-chart { border-right: none; border-bottom: 1px solid var(--border); }
  .calendar-controls { flex-wrap: wrap; }
  .cal-cell { min-height: 60px; }
  .cal-pnl { font-size: 11px; }
  .cal-meta { display: none; }
}
