:root {
  --primary: #0070f3;
  --bg-light: #f9fbfe;
  --text: #1f2937;
  --radius: 10px;
  --shadow: 0 4px 10px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  color: #333;
  line-height: 1.6;
}


h1 {
  text-align: center;
  font-size: 2rem;
  margin: 30px auto;
  color: #1162ae;
}

#saved-container {
  max-width: 90%;
  margin: auto;
  padding: 1rem;
}

.profile-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-card h2 {
  margin: 0.5rem 0;
  font-size: 1.4rem;
  color: var(--primary);
}

.profile-card p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.note-tag-container {
  margin-top: 1rem;
}

.note-tag-container textarea,
.note-tag-container input {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  margin-bottom: 0.75rem;
}

button {
  padding: 0.6rem 1rem;
  margin: 5px 5px 0 0;
  border: none;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0057cc;
}

.contact-info,
.message-btn {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Modal styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

.profile-photo-modal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 15px 0;
  object-fit: cover;
}

/* Message button */
.message-btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 15px;
  transition: background 0.3s ease;
  display: block;
  width: 100%;
}

.message-btn:hover {
  background-color: #3e8e41;
}


/* Notes & Tags Section */
.note-tag-section {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease;
}

.note-tag-section:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.note-tag-section h4 {
  margin: 10px 0 5px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.notes-text,
.tags-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  font-size: 14px;
  margin-bottom: 12px;
  background: #f9f9f9;
  transition: border-color 0.2s, background 0.2s;
}

.notes-text:focus,
.tags-input:focus {
  outline: none;
  border-color: #0070f3;
  background: #fff;
}

.save-btn {
  background: #28a745;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.save-btn:hover {
  background-color: #218838;
}

.remove-saved-btn {
  background: #088d94;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.remove-saved-btn:hover {
  background-color: #102941;
}


@media (max-width: 768px) {

  h1 {
    font-size: 1.5rem;
    margin: 20px auto;
  }

  #saved-container {
    padding: 0.5rem;
  }

  .profile-card {
    padding: 1rem;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .profile-card h2 {
    font-size: 1.2rem;
  }

  .profile-card p {
    font-size: 0.85rem;
  }

  .note-tag-container textarea,
  .note-tag-container input {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 15px;
    width: 95%;
  }

  .profile-photo-modal {
    width: 70px;
    height: 70px;
  }

  .message-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .note-tag-section {
    padding: 12px 15px;
  }

  .note-tag-section h4 {
    font-size: 0.9rem;
  }

  .notes-text,
  .tags-input {
    font-size: 0.4rem;
    padding: 8px;
  }

  .save-btn {
    font-size: 0.4rem;
    padding: 8px 12px;
  }

  .remove-saved-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}
