body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #74ebd5, #ACB6E5);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  background: white;
  padding: 30px;
  margin: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 95%;
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

h1, h2 {
  text-align: center;
  color: #333;
}

input {
  padding: 10px;
  margin: 8px 0;
  width: calc(100% - 22px);
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

button {
  padding: 10px;
  margin-top: 10px;
  border: none;
  background: #4CAF50;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: 0.3s;
}

button:hover {
  background: #45a049;
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.contact-card:hover {
  background: #e0f7fa;
}

.contact-card button {
  background: #f44336;
  width: auto;
  padding: 6px 12px;
}

.contact-card button.edit-btn {
  background: #2196F3;
  margin-right: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  color: black;
}
