
body {
  background: #f7f8fa;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.2rem 2rem;
  background: #f3f4f6;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #222e3a;
}

.topbar input {
  padding: 0.7rem 1.2rem;
  border: 1.5px solid #e0e3e8;
  border-radius: 8px;
  min-width: 320px;
  font-size: 1rem;
  background: #fff;
  color: #222e3a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.contact-section {
  margin-bottom: 2.5rem;
}

.contact-section h2 {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222e3a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
  border: 1.5px solid #e5e7eb;
  transition: box-shadow 0.2s;
}
.contact-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.contact-avatar {
  width: 64px;
  height: 64px;
  margin-right: 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e3e8;
  color: #6b7280;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 50%;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #222e3a;
}

.contact-info p {
  margin: 0.25rem 0;
  color: #444;
  font-size: 1rem;
}

.favorite-button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: none;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: #d1d5db;
  padding: 0;
  transition: color 0.2s;
}
.favorite-button.active {
  color: #f7b500;
  text-shadow: 0 0 4px #f7b50044;
}

.empty-message {
  text-align: center;
  padding: 2.5rem;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 14px;
  font-size: 1.1rem;
}