.profile-container {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #f0f0f0;
  border: 1px solid #bbb;
  font-family: Arial, sans-serif;
  background: url('https://static.vecteezy.com/system/resources/previews/058/170/767/large_2x/smooth-blue-and-purple-smoke-waves-flowing-gracefully-on-a-transparent-background-blue-purple-smooth-smoke-wave-isolated-on-transparent-background-free-png.png') center/cover no-repeat;
}



.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background: #f1ecf1;

}

#profile-picture {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 15px;
  border: 1px solid #999;
}

#profile-info h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

#profile-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.profile-bio {
  font-size: 14px;
  margin-bottom: 8px;
}

#profile-edit-button {
  padding: 6px 10px;
  border: 1px solid #666;
  background: #fff;
  cursor: pointer;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  background: #d4b5d4;
  border-radius: 5px;
  /*background: url('https://static.vecteezy.com/system/resources/previews/058/170/767/large_2x/smooth-blue-and-purple-smoke-waves-flowing-gracefully-on-a-transparent-background-blue-purple-smooth-smoke-wave-isolated-on-transparent-background-free-png.png') center/cover no-repeat;*/
}

.profile-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-post {
  border: 1px solid #aaa;
  background: #fff;
  padding: 4px;
}

.profile-post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.profile-post-overlay {
  padding: 6px 4px;
}

.profile-post-stats {
  font-size: 13px;
  margin-bottom: 6px;
}

.delete-post {
  padding: 5px 8px;
  border: 1px solid #f4f0f0;
  background: #eee;
  cursor: pointer;
}

.friend-section {
  margin-top: 20px;
  padding-top: 10px;
 
}

.friend-search input {
  width: 280px;
  padding: 6px;
  border: 1px solid #666;
  margin-right: 6px;
  
}

.friend-search button {
  padding: 6px 10px;
  border: 1px solid #000000;
  background: #d4b5d4;
  cursor: pointer;
  border-radius: 5px;
}

.friend-results {
  margin-top: 10px;
}

.friend-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.friend-result button {
  padding: 4px 8px;
  border: 1px solid #666;
  background: #eee;
  cursor: pointer;
}

.already-friend {
  font-size: 13px;
  color: #555;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(243, 216, 216, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  width: 420px;
  background: #dbc6c6;
  border: 1px solid #7a7373;
  padding: 16px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 6px;
  border: 1px solid #777;
}

.modal-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.modal-buttons button {
  padding: 6px 10px;
  border: 1px solid #666;
  background: #eee;
  cursor: pointer;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  border: 6px solid #ddd;
  border-top: 6px solid #666;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
