/* Professional Dashboard Styles */

* { 
  box-sizing: border-box; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
}

body { 
  margin: 0; 
  background: linear-gradient(135deg, #5fa66a 0%, #4a8c57 100%);
  padding: 24px;
  min-height: 100vh;
}

.container { 
  max-width: 1400px; 
  margin: auto; 
}

/* Dashboard Header - Enhanced */
.dashboard-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 32px 40px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
              0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dashboard-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #111827;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1f7a4d 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* Compact Date Filter - Modern */
.filter-compact {
  display: flex;
  gap: 12px;
}

.filter-form {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-form input {
  padding: 11px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  width: 190px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  font-weight: 500;
}

.filter-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.filter-form input:focus {
  outline: none;
  border-color: #1f7a4d;
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.1);
}

.btn-filter {
  padding: 11px 28px;
  background: linear-gradient(135deg, #1f7a4d 0%, #155e3b 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(31, 122, 77, 0.3);
}

.btn-filter:hover {
  background: linear-gradient(135deg, #155e3b 0%, #0f4829 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 122, 77, 0.4);
}

.btn-filter:active {
  transform: translateY(0);
}

/* Key Metrics Grid - Enhanced Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
              0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, currentColor 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12),
              0 8px 16px rgba(0, 0, 0, 0.08);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card.primary {
  color: #3b82f6;
}

.metric-card.success {
  color: #22c55e;
}

.metric-card.warning {
  color: #f59e0b;
}

.metric-card.info {
  color: #06b6d4;
}

.metric-icon {
  font-size: 25px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 25px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.metric-sub {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Charts Grid - Modern Layout */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.chart-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
              0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1),
              0 4px 14px rgba(0, 0, 0, 0.06);
}

.chart-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.chart-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.chart-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.chart-container {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chart-container canvas {
  max-height: 100%;
  max-width: 100%;
}

/* Detailed Stats Grid - Enhanced */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
              0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, currentColor 0%, transparent 100%);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1),
              0 6px 16px rgba(0, 0, 0, 0.06);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-icon {
  font-size: 25px;
}

.stat-title {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.stat-percentage {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  font-weight: 600;
}

.stat-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Color Variants - Enhanced */
.stat-card.green {
  color: #22c55e;
}

.stat-card.green .stat-value {
  color: #16a34a;
}

.stat-bar-fill.green {
  background: linear-gradient(90deg, #22c55e 0%, #34d399 100%);
}

.stat-card.red {
  color: #ef4444;
}

.stat-card.red .stat-value {
  color: #dc2626;
}

.stat-bar-fill.red {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.stat-card.purple {
  color: #8b5cf6;
}

.stat-card.purple .stat-value {
  color: #7c3aed;
}

.stat-bar-fill.purple {
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.stat-card.orange {
  color: #f59e0b;
}

.stat-card.orange .stat-value {
  color: #d97706;
}

.stat-bar-fill.orange {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.stat-card.blue {
  color: #3b82f6;
}

.stat-card.blue .stat-value {
  color: #2563eb;
}

.stat-bar-fill.blue {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.stat-card.gray {
  color: #6b7280;
}

.stat-card.gray .stat-value {
  color: #4b5563;
}

.stat-bar-fill.gray {
  background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 28px;
  }
  
  .filter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-form input {
    width: 100%;
  }
  
  .metrics-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-card {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }
  
  .dashboard-header {
    padding: 20px 24px;
  }
  
  .dashboard-title {
    font-size: 24px;
  }
  
  .metric-value {
    font-size: 28px;
  }
  
  .stat-value {
    font-size: 32px;
  }

  .metric-card,
  .chart-card,
  .stat-card {
    padding: 20px;
    background-color: #276749;
  }
}






.apply button:active {
  transform: scale(0.96);
}



