/* Reset and Base Styles */
/* Dashboard main container - no background, no shadow, no border radius */
/* Dashboard main container - add border, rounded corners, white background */
.cashflow-dashboard {
  border-radius: 16px;
  border: 1px solid rgba(135, 137, 156, 0.5);
  background: #fff;
  padding: 20px;
  flex: 1 0 0;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-title {
  padding-left: 24px;

  font-family: "DM Mono";
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 4.2px;
  text-transform: uppercase;
}

/* Toggle buttons */
/* Toggle container - remove background, spacing */
.toggle-container {
  display: flex;
  gap: 8px;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Toggle button - flat, dark text, no background */
.toggle-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Subtitle - dark text */
/* Subtitle - uppercase, bold, spacing, left align */
.subtitle {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111827;
  text-align: left;
}

.header {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: flex-end;
}

.chart-container-wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.chart-container {
  min-width: 580px;
}

.dashboard-title {
  font-family: "DM Mono";
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 4.2px;
  text-transform: uppercase;
}

.mode-info {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.mode-label {
  color: #242424;
  font-family: "DM Mono";
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 4.2px;
  text-transform: uppercase;
}

/* Info icon - flat, dark text */
/* Info icon - circle, border, center, accent color */
.info-icon {
  width: 20px;
  height: 20px;
}

/* Toggle controls - remove background, spacing */
/* Toggle controls - pill background, spacing */
.toggle-controls {
  display: flex;
  padding: 6px;
  gap: 8px;

  border-radius: 10px;
  background: #f4ede0;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.06) inset;
}

/* Toggle button (controls) - match above */
/* Toggle button - pill, bold, spacing, shadow */
.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 8px;
  background: #f4ede0;

  font-family: Manrope;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.36px;
}

.toggle-btn:hover {
}

.toggle-btn.active {
  background: #414141;
  color: #fff;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Chart container show - no change needed */
.chart-container.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#main-chart {
  width: 100% !important;
  height: 100% !important;
}

.bottom-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Metric item - flat, tighter padding */
/* Metric item - border right, spacing, font */
.metric-item {
  padding: 16px 24px;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Metric item hover - no effect */
/* Metric item hover - no effect */
.metric-item:hover {
  /* no effect */
}

/* Metric item last child - no border */
/* Metric item last child - no border */
.metric-item:last-child {
  border-right: none;
}

.metric-value {
  font-family: Satoshi;
  font-size: 24px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.48px;
}

.metric-value.updated {
  transform: scale(1.05);
  color: #3b82f6;
}

.metric-value.negative {
  color: #e3604e;
}

.metric-value.positive {
  color: #5f8c5e;
}

.metric-label {
  font-family: "DM Mono";
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 4.2px;
  text-transform: uppercase;
}

/* Tooltip Styles */
.info-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: -20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.info-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip-arrow {
  position: absolute;
  top: -6px;
  right: 30px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.tooltip-content {
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.footer-note {
  font-family: Manrope;
  font-size: 12px;
  font-weight: 500;
  line-height: 160%;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 576px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chart-container-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chart-container {
    min-width: 100%;
  }

  .bottom-metrics {
    grid-template-columns: 1fr;
  }

  .metric-item {
    border-right: none;
    border-bottom: none;
  }

  .metric-item:last-child {
    border-bottom: none;
  }

  .toggle-btn {
    flex: 1;
    min-width: auto;
  }
}
