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

body {
  font-family: 'Inter', sans-serif;
  background: #f0f4fa;
  color: #1e293b;
  padding: 2rem;
  min-height: 100vh;
}

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

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.title-section h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.title-section p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.3rem;
  color: #334155;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: white;
  border-radius: 28px;
  padding: 1.2rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.kpi-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #f97316;
}

.kpi-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #475569;
}

.kpi-value {
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 0.25rem;
  line-height: 1.2;
  color: #0f172a;
}

.trend {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
}

.filters-card {
  background: white;
  border-radius: 24px;
  padding: 1.2rem 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
}

.filter-group input,
.filter-group button {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 1rem;
  border-radius: 40px;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.filter-group input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.btn-primary {
  background: linear-gradient(95deg, #f97316, #ea580c);
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(95deg, #ea580c, #c2410c);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1px solid #f97316;
  color: #f97316;
}

.btn-outline:hover {
  background: rgba(249, 115, 22, 0.1);
}

.chart-container {
  background: white;
  border-radius: 28px;
  padding: 1.2rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.chart-title {
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.table-wrapper {
  background: white;
  border-radius: 28px;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 1rem 0.8rem;
  background: #1e293b;
  color: white;
  font-weight: 600;
}

td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

tr:hover td {
  background: #f8fafc;
}

.event-badge {
  border-radius: 40px;
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.event-badge.fail {
  background: #fee2e2;
  color: #b91c1c;
}

.event-badge.success {
  background: #e9fee2;
  color: #1cb946;
}

.footer-note {
  text-align: center;
  font-size: 0.7rem;
  margin-top: 2rem;
  color: #64748b;
}

@media (max-width: 680px) {
  body {
    padding: 1rem;
  }

  .kpi-value {
    font-size: 1.8rem;
  }

  .filter-group {
    width: 100%;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 18px;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-sm {
  font-size: 12px;
}

.icon-md {
  font-size: 24px;
}

.icon-lg {
  font-size: 32px;
}