:root {
  --bg-color: #f8f9fb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --primary: #5570f1;
  --primary-light: #eff2ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 16px;
  min-height: 100vh;
}

.dashboard-container {
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .dashboard-container {
    max-width: 1000px;
  }
  
  .metrics-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .charts-grid .chart-section {
    margin-bottom: 0;
  }
}

header {
  margin: 20px 0 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-circle {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blue-icon { background: var(--primary-light); color: var(--primary); }
.green-icon { background: var(--success-light); color: var(--success); }
.red-icon { background: var(--danger-light); color: var(--danger); }

.metric-content { flex-grow: 1; }

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.vs-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trend {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}

.trend.up { background: var(--success-light); color: var(--success); }
.trend.down { background: var(--danger-light); color: var(--danger); }

/* Mix Bar */
.mix-bar-wrapper { margin-top: 10px; }

.mix-bar {
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  margin-bottom: 16px;
}

.bar-segment { height: 100%; transition: width 0.5s ease; }
.bar-segment.cash { background: var(--primary); }
.bar-segment.digital { background: #cbd5e1; }
.bar-segment.orange-bg { background: #f59e0b; }

.mix-legend {
  display: flex;
  justify-content: space-between;
}

.legend-item { display: flex; align-items: center; gap: 8px; }

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.cash { background: var(--primary); }
.dot.digital { background: #cbd5e1; }
.dot.orange { background: #f59e0b; }

.legend-label { font-size: 0.8rem; color: var(--text-muted); }
.legend-val { font-size: 0.85rem; font-weight: 700; }

/* Charts & Lists */
.chart-section, .list-section {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.branch-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.branch-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; margin-right: 14px;
}

.blue-bg { background: #e0e7ff; color: #4338ca; }
.orange-bg { background: #ffedd5; color: #9a3412; }

.branch-info h4 { font-size: 0.95rem; font-weight: 700; }
.branch-sub { font-size: 0.75rem; color: var(--text-muted); }

.branch-stats { margin-left: auto; text-align: right; }
.branch-val { display: block; font-weight: 700; font-size: 1rem; }
.status-text { font-size: 0.75rem; font-weight: 600; color: var(--success); }
