.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--icon-background);
  color: var(--primary);
  font-size: 18px;
}

.stat-content span {
  color: var(--text-secondary);

  font-size: 13px;
}

.stat-content h2 {
  margin: 5px 0;
  color: var(--text-primary);
  font-size: 22px;
}

.stat-content small {
  color: var(--text-secondary);

  font-size: 11px;
}
/* Empty */

.dashboard-empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.dashboard-empty-state i {
  margin-bottom: 15px;
  font-size: 30px;
}

.dashboard-empty-state h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
}

/* ========================================
   Notification Permission Popup
======================================== */

.notification-permission-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: fadeIn 0.25s ease;
}

.notification-permission-card {
  width: 420px;
  max-width: 92%;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: popup 0.25s ease;
}

.notification-bell-icon {
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  background: var(--icon-background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 30px;
}

.notification-permission-card h2 {
  margin: 20px 0 12px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
}

.notification-permission-card p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.notification-actions {
  display: flex;
  gap: 12px;
}

.notification-actions button {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-secondary, var(--icon-background));
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--icon-background);
}

@keyframes popup {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

  .notification-permission-card {
    width: 95%;
    padding: 24px;
  }

  .notification-actions {
    flex-direction: column-reverse;
    height: 100px;
  }

  .notification-actions button {
    width: 100%;
  }
}