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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #0a0e27;
  color: #e4e7eb;
  line-height: 1.6;
}

.dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

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

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

.btn-refresh {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-refresh:hover {
  background: #2563eb;
}

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

.stat-card {
  background: #1a1f3a;
  border: 1px solid #2d3552;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-bar {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  background: #1a1f3a;
  border: 1px solid #2d3552;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  color: #e4e7eb;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-size: 1.1rem;
}

.contacts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: #1a1f3a;
  border: 1px solid #2d3552;
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.contact-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-email {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-meta {
  font-size: 0.85rem;
  color: #6b7280;
}
