/* ============================================
   UNIFIED METRIC CARDS
   Consistent styling for all metric cards across Overview, Money, and Tenders
   ============================================ */

/* Base Card Styling */
.quick-stat-card,
.money-metric-card,
.tender-metric-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}

.quick-stat-card:hover,
.money-metric-card:hover,
.tender-metric-card:hover {
  transform: translateY(-2px);
}

.quick-stat-card:active,
.money-metric-card:active,
.tender-metric-card:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

@media (prefers-reduced-motion: reduce) {
  .quick-stat-card:active,
  .money-metric-card:active,
  .tender-metric-card:active {
    transform: none;
  }
}

/* Card Content Container */
.stat-content,
.metric-content {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Header with Icon and Drill Indicator */
.stat-header,
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.stat-icon,
.metric-icon {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.drill-indicator {
  font-size: 18px;
  color: rgba(0, 158, 217, 0.6);
  font-weight: 300;
  opacity: 0.7;
}

.quick-stat-card:hover .drill-indicator,
.money-metric-card:hover .drill-indicator,
.tender-metric-card:hover .drill-indicator {
  opacity: 1;
}

/* Value - Large, Bold, Prominent */
.stat-content .stat-value,
.metric-content .metric-value {
  font-size: 36px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.1 !important;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-content .stat-value,
[data-theme="dark"] .metric-content .metric-value {
  color: #f3f4f6 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}




/* Label - Small, Medium Weight, Secondary Color */
.stat-content .stat-label,
.metric-content .metric-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  position: relative;
  z-index: 1;
  margin-top: 6px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

[data-theme="dark"] .stat-content .stat-label,
[data-theme="dark"] .metric-content .metric-label {
  color: #9ca3af !important;
}

/* ============================================
   STAT CARD COLOR PALETTE — VIBRANT GLASSMORPHISM
   ============================================ */

/* Income — Warm Amber/Gold */
.stat-content[style*="rgba(255, 215, 0"],
.stat-content[style*="rgba(255, 236, 179"],
.stat-content[style*="255, 236, 179"],
.metric-content.income-bg {
  background: linear-gradient(135deg,
      rgba(245, 158, 11, 0.35) 0%,
      rgba(252, 211, 77, 0.18) 100%) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Category-specific value overrides removed to maintain consistent dark grey text */

/* Hover glow effect for all stat cards */
.quick-stat-card:hover .stat-content,
.money-metric-card:hover .metric-content,
.tender-metric-card:hover .metric-content {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-2px);
}

/* Icon Colors (stronger, more saturated) */
.stat-icon[style*="#FFD700"],
.metric-icon.income-icon {
  color: #F59E0B !important;
  /* Stronger gold/amber */
}

.stat-icon[style*="#FF6F61"],
.metric-icon.spend-icon {
  color: #EF4444 !important;
  /* Stronger red */
}

.stat-icon[style*="#50C878"],
.metric-icon.savings-icon {
  color: #10B981 !important;
  /* Stronger green */
}

.stat-icon[style*="#009ED9"],
.metric-icon.balance-icon {
  color: #3B82F6 !important;
  /* Stronger blue */
}

/* Remove any gradient overlays */
.stat-content::before,
.metric-content::before {
  display: none !important;
}

/* Ensure proper spacing and alignment */
.stat-content,
.metric-content {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {

  .stat-content .stat-value,
  .metric-content .metric-value {
    font-size: clamp(20px, 6vw, 26px) !important;
    white-space: nowrap;
  }

  .stat-content .stat-label,
  .metric-content .metric-label {
    font-size: clamp(11px, 3.2vw, 13px) !important;
    white-space: nowrap;
  }
}

@media (min-width: 1440px) {

  .stat-content .stat-value,
  .metric-content .metric-value {
    font-size: 40px !important;
  }

  .stat-content .stat-label,
  .metric-content .metric-label {
    font-size: 15px !important;
  }
}

/* ============================================
   LIGHT MODE OVERRIDES — Dark text on pastel cards
   ============================================ */

/* Light mode overrides for specific categories removed */