/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Page */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 30px;
  color: #333;
}

/* Title */
.title {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  font-size: 2.2rem;
}

/* Profiles Grid */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Profile Card */
.profile-card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.profile-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.profile-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.profile-card a {
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
}

/* Floating Add Button */
.add-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #ff6b6b;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.add-btn:hover {
  transform: scale(1.1);
  background: #ff4d4d;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 10;
}

/* Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  display: none;
  z-index: 20;
}

.popup h2 {
  margin-bottom: 15px;
  text-align: center;
}

/* Inputs */
.popup input,
.popup textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.popup textarea {
  resize: none;
  height: 80px;
}

/* Buttons */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

#add-profile {
  background: #667eea;
  color: #fff;
}

#add-profile:hover {
  background: #5567d9;
}

#close-popup {
  background: #ddd;
}

#close-popup:hover {
  background: #ccc;
}
/* Delete Button */
.delete-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #ff6b6b;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.delete-btn:hover {
  background: #ff4d4d;
}
