/**
 * Dashboard Styles (index.php)
 * Styles for the main dashboard page
 */

/* ===== Hero Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, #c11010, #b01f0f);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 28px;
  color: white;
}

.hero-banner h5 {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.9;
}

.hero-banner h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.hero-banner p {
  color: white;
  margin-top: 4px;
  opacity: 0.9;
}

.hero-banner .date-badge {
  margin-top: 10px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: white;
}

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

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #eef2f8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #e6f0fa;
  color: #2d7fb9;
}

.stat-icon.green {
  background: #e0f0e6;
  color: #2a9d8f;
}

.stat-icon.orange {
  background: #fef0e0;
  color: #f0ad4e;
}

.stat-icon.purple {
  background: #ede0f5;
  color: #8b5cf6;
}

.stat-card .stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e466e;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #6f8ea3;
}

/* ===== Modules Grid ===== */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.module-card {
  background: white;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid #eef2f8;
}

.module-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #260000;
  margin: 0 0 10px;
}

.module-card p {
  font-size: 0.8rem;
  color: #2f3335;
  margin: 0;
}

.module-card.recent-cases {
  grid-column: 1 / -1;
}

.module-card.recent-cases .placeholder-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  font-size: 0.75rem;
  color: #6f8ea3;
  margin-top: 8px;
}

.module-card.recent-cases .placeholder-table .header {
  font-weight: 600;
  color: #1e466e;
}

/* ===== Footer ===== */
footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #e0eaf2;
  text-align: center;
  font-size: 0.65rem;
  color: #7c9ab3;
}

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

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

  .module-card.recent-cases {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 20px;
  }

  .hero-banner h1 {
    font-size: 1.3rem;
  }

  .hero-banner p {
    font-size: 0.9rem;
  }

  .hero-banner .date-badge {
    font-size: 0.7rem;
    padding: 2px 12px;
  }

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

  .stat-card {
    padding: 14px 16px;
  }

  .stat-card .stat-number {
    font-size: 1.2rem;
  }

  .stat-card .stat-label {
    font-size: 0.7rem;
  }

  .modules-grid {
    gap: 12px;
  }

  .module-card {
    padding: 16px 18px;
  }

  .module-card h3 {
    font-size: 0.95rem;
  }

  .module-card p {
    font-size: 0.75rem;
  }

  .module-card.recent-cases .placeholder-table {
    grid-template-columns: 1fr 1fr;
    font-size: 0.7rem;
    gap: 4px 12px;
  }

  .module-card.recent-cases .placeholder-table .header {
    grid-column: span 2;
  }

  .module-card.recent-cases .placeholder-table span {
    padding: 2px 0;
    border-bottom: 1px solid #f0f4fa;
  }

  .module-card.recent-cases .placeholder-table span:nth-child(n + 5) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-banner h1 {
    font-size: 1.1rem;
  }

  .stat-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .stat-card .stat-number {
    font-size: 1rem;
  }

  .module-card {
    padding: 14px 16px;
  }

  .module-card h3 {
    font-size: 0.9rem;
  }

  .module-card.recent-cases .placeholder-table {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .module-card.recent-cases .placeholder-table .header {
    grid-column: 1;
    margin-top: 6px;
  }

  .module-card.recent-cases .placeholder-table span {
    padding: 2px 0;
    border-bottom: 1px solid #f0f4fa;
  }

  .module-card.recent-cases .placeholder-table span:last-child {
    border-bottom: none;
  }
}
