/* ============================================
   SpamJammer Dashboard — Illustrated / Hand-Drawn
   ============================================ */

:root {
  --yellow: #FBBF24;
  --yellow-dark: #E59B0F;
  --yellow-light: #FEF3C7;
  --coral: #F97316;
  --coral-light: #FED7AA;
  --red: #EF4444;
  --teal: #14B8A6;
  --teal-light: #CCFBF1;
  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --bg: #FFF8F0;
  --bg-warm: #FFF0E0;
  --card-bg: #FFFFFF;
  --text: #3D2C1E;
  --text-light: #7C6A5B;
  --text-muted: #A89888;
  --border: #F0E0D0;
  --font-heading: 'Baloo 2', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius-wobbly: 20px 60px 20px 60px;
  --radius-blob: 40% 60% 60% 40% / 60% 40% 60% 40%;
  --radius-card: 20px;
  --shadow-card: 0 4px 20px rgba(61, 44, 30, 0.08);
  --shadow-hover: 0 8px 30px rgba(61, 44, 30, 0.15);
  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Confetti Decorations ---- */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.25;
  animation: confetti-fall 15s linear infinite;
}

.confetti-1 { background: var(--yellow); left: 5%; top: -20px; animation-delay: 0s; animation-duration: 12s; width: 8px; height: 8px; }
.confetti-2 { background: var(--coral); left: 15%; top: -20px; animation-delay: 2s; animation-duration: 14s; width: 6px; height: 12px; border-radius: 50%; }
.confetti-3 { background: var(--teal); left: 30%; top: -20px; animation-delay: 4s; animation-duration: 11s; }
.confetti-4 { background: var(--purple); left: 50%; top: -20px; animation-delay: 1s; animation-duration: 16s; width: 12px; height: 6px; }
.confetti-5 { background: var(--yellow); left: 65%; top: -20px; animation-delay: 3s; animation-duration: 13s; border-radius: 50%; }
.confetti-6 { background: var(--coral); left: 78%; top: -20px; animation-delay: 5s; animation-duration: 15s; width: 7px; height: 7px; }
.confetti-7 { background: var(--teal); left: 88%; top: -20px; animation-delay: 2.5s; animation-duration: 12s; width: 9px; height: 5px; }
.confetti-8 { background: var(--purple); left: 95%; top: -20px; animation-delay: 6s; animation-duration: 14s; border-radius: 50%; width: 8px; height: 8px; }

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0.3; }
  50% { opacity: 0.2; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---- Top Navigation ---- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--card-bg);
  border-bottom: 3px solid var(--yellow);
  border-bottom-style: dashed;
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mascot {
  animation: mascot-bounce 2s ease-in-out infinite;
}

@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.topnav-links {
  display: flex;
  gap: 4px;
}

.topnav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 30px;
  transition: all var(--transition);
  position: relative;
}

.topnav-links a:hover {
  color: var(--coral);
  background: var(--coral-light);
  transform: translateY(-2px);
}

.topnav-links a.active {
  color: var(--card-bg);
  background: var(--coral);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  position: relative;
  background: none;
  border: 2px dashed var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.icon-btn:hover {
  border-color: var(--yellow);
  background: var(--yellow-light);
  transform: scale(1.1) rotate(-5deg);
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 40px;
  border: 2px dashed var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.user-menu:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-2px);
}

.avatar {
  position: relative;
  width: 36px;
  height: 36px;
}

.avatar-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chevron {
  color: var(--text-muted);
}

/* ---- Wavy Dividers ---- */
.wavy-divider svg {
  display: block;
  width: 100%;
}

.wavy-top {
  margin-top: -1px;
}

.wavy-top svg {
  height: 24px;
}

.wavy-bottom svg {
  height: 40px;
}

/* ---- Layout ---- */
.layout {
  display: flex;
  min-height: calc(100vh - 70px);
  position: relative;
  z-index: 1;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 240px;
  background: var(--card-bg);
  border-right: 3px dashed var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.sidebar-link:hover {
  background: var(--yellow-light);
  color: var(--text);
  transform: translateX(4px);
  border-color: var(--yellow);
}

.sidebar-link.active {
  background: var(--yellow-light);
  color: var(--text);
  border: 2px dashed var(--yellow);
}

.sidebar-link svg {
  flex-shrink: 0;
}

/* Plan badge */
.plan-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--yellow-light), var(--bg));
  border-radius: var(--radius-card);
  border: 2px dashed var(--yellow);
}

.plan-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.plan-name {
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--yellow-dark);
}

.plan-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Usage meter */
.usage-section {
  padding: 0 4px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.usage-pct {
  color: var(--coral);
  font-family: var(--font-heading);
}

.usage-track {
  height: 28px;
  background: var(--bg);
  border-radius: 20px;
  border: 2px dashed var(--border);
  overflow: hidden;
  position: relative;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--coral));
  border-radius: 20px;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
  position: relative;
}

.usage-face {
  flex-shrink: 0;
  animation: face-wiggle 3s ease-in-out infinite;
}

@keyframes face-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.usage-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
  display: block;
  text-align: center;
}

/* ---- Main Content ---- */
.main-content {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  min-width: 0;
}

/* ---- Welcome Banner ---- */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--yellow-light) 0%, var(--coral-light) 50%, var(--purple-light) 100%);
  border-radius: 30px;
  border: 3px dashed var(--yellow);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.welcome-text h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.welcome-text p {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.welcome-text strong {
  color: var(--coral);
  font-size: 1.15rem;
}

.welcome-mascot {
  flex-shrink: 0;
}

.mascot-celebrate {
  animation: mascot-float 3s ease-in-out infinite;
}

.mascot-arm-left {
  transform-origin: 25px 55px;
  animation: wave-left 1.5s ease-in-out infinite;
}

.mascot-arm-right {
  transform-origin: 95px 55px;
  animation: wave-right 1.5s ease-in-out infinite 0.3s;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes wave-left {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-20deg); }
}

@keyframes wave-right {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
}

.sparkles {
  animation: sparkle-spin 4s linear infinite;
  transform-origin: 60px 60px;
}

@keyframes sparkle-spin {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.stat-messages:hover { border-color: var(--teal); }
.stat-spam:hover { border-color: var(--coral); }
.stat-false:hover { border-color: var(--purple); }
.stat-rate:hover { border-color: var(--yellow); }

.stat-icon {
  flex-shrink: 0;
}

.envelope-fly {
  animation: fly-envelope 3s ease-in-out infinite;
}

@keyframes fly-envelope {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3px, -3px) rotate(-5deg); }
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-pct {
  color: var(--yellow-dark);
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
}

.stat-change.positive { color: var(--teal); }
.stat-change.neutral { color: var(--purple); }

/* ---- Chart Section ---- */
.chart-section {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.chart-container {
  display: flex;
  align-items: flex-end;
  height: 220px;
  position: relative;
  padding-bottom: 28px;
}

.chart-cloud {
  position: absolute;
  top: 10px;
  right: 20px;
  opacity: 0.4;
  animation: cloud-drift 8s ease-in-out infinite;
}

@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(15px); }
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 28px;
  width: 40px;
  flex-shrink: 0;
}

.chart-y-axis span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  flex: 1;
  height: 100%;
  gap: 8px;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 28px;
  position: relative;
}

.chart-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.bar-group {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.bar {
  width: 24px;
  border-radius: 12px 12px 4px 4px;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
}

.bar:hover {
  transform: scaleY(1.05);
  filter: brightness(1.1);
}

.bar:hover::after {
  content: attr(data-val);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.bar-clean {
  background: linear-gradient(180deg, var(--teal), #0D9488);
}

.bar-spam {
  background: linear-gradient(180deg, var(--coral), #EA580C);
}

.bar-face {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
}

.day-label {
  position: absolute;
  bottom: -24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---- Two Column Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* ---- Threats Table ---- */
.threats-section {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow-card);
}

.threats-table-wrapper {
  overflow-x: auto;
}

.threats-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.threats-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
}

.threats-table tbody tr {
  transition: all var(--transition);
}

.threats-table tbody tr:hover {
  transform: translateX(4px);
}

.threats-table tbody td {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg);
  vertical-align: middle;
}

.threats-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
}

.threats-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}

.threat-badge.phishing { color: var(--coral); }
.threat-badge.malware { color: var(--red); }
.threat-badge.scam { color: var(--yellow-dark); }
.threat-badge.bulk { color: var(--purple); }

.source-cell {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-light);
}

.risk-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.risk-pill.critical { background: #FEE2E2; color: var(--red); }
.risk-pill.high { background: var(--coral-light); color: var(--coral); }
.risk-pill.medium { background: var(--yellow-light); color: var(--yellow-dark); }
.risk-pill.low { background: var(--purple-light); color: var(--purple); }

/* ---- Categories ---- */
.categories-section {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow-card);
}

.categories-chart {
  display: flex;
  align-items: center;
  gap: 24px;
}

.donut-wrapper {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-seg {
  transition: all 0.5s ease;
}

.donut-seg:hover {
  filter: brightness(1.15);
  stroke-width: 32;
}

.categories-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all var(--transition);
}

.cat-item:hover {
  background: var(--bg);
  transform: translateX(4px);
}

.cat-color {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  flex-shrink: 0;
}

.cat-name {
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
}

.cat-pct {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
}

/* ---- Blocked Senders ---- */
.blocked-section {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow-card);
}

.blocked-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blocked-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  transition: all var(--transition);
  background: var(--bg);
}

.blocked-item:hover {
  transform: translateX(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.monster-icon {
  flex-shrink: 0;
  animation: monster-wiggle 4s ease-in-out infinite;
}

.monster-1 { animation-delay: 0s; }
.monster-2 { animation-delay: 0.5s; }
.monster-3 { animation-delay: 1s; }
.monster-4 { animation-delay: 1.5s; }
.monster-5 { animation-delay: 2s; }

@keyframes monster-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.blocked-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.blocked-sender {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blocked-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.blocked-bar {
  width: 60px;
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.blocked-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--red));
  border-radius: 6px;
  transition: width 1s ease;
}

/* ---- Quick Actions ---- */
.actions-section {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
}

.action-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.action-scan { color: var(--teal); }
.action-scan:hover { background: var(--teal-light); border-color: var(--teal); }

.action-whitelist { color: var(--yellow-dark); }
.action-whitelist:hover { background: var(--yellow-light); border-color: var(--yellow); }

.action-report { color: var(--coral); }
.action-report:hover { background: var(--coral-light); border-color: var(--coral); }

.action-rules { color: var(--purple); }
.action-rules:hover { background: var(--purple-light); border-color: var(--purple); }

.action-export { color: var(--teal); }
.action-export:hover { background: var(--teal-light); border-color: var(--teal); }

.action-train { color: var(--coral); }
.action-train:hover { background: var(--coral-light); border-color: var(--coral); }

.action-btn span {
  color: var(--text);
}

/* ---- Tip Box ---- */
.tip-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--yellow-light), var(--bg));
  border: 2px dashed var(--yellow);
  border-radius: 18px;
}

.tip-mascot {
  flex-shrink: 0;
  animation: mascot-bounce 2s ease-in-out infinite;
}

.tip-content strong {
  font-family: var(--font-heading);
  color: var(--yellow-dark);
  font-size: 0.95rem;
}

.tip-content p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .topnav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .welcome-text h1 {
    font-size: 1.4rem;
  }

  .categories-chart {
    flex-direction: column;
  }

  .chart-container {
    height: 180px;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-info {
    display: none;
  }

  .chevron {
    display: none;
  }

  .topnav {
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bar {
    width: 16px;
  }
}
