/* 🌈 General Page Styling */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #e3f2fd, #ede7f6, #fce4ec);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  animation: fadeIn 1.5s ease-in;
}

/* 🌟 Header */
h2 {
  color: #6a1b9a;
  text-align: center;
  margin-top: 50px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 3px rgba(106, 27, 154, 0.4);
  animation: slideDown 0.8s ease-out;
}

/* 🔗 Navigation Links */
a {
  text-decoration: none;
  color: #6a1b9a;
  font-weight: 600;
  display: inline-block;
  margin: 8px 0;
  padding: 10px 20px;
  border: 2px solid #6a1b9a;
  border-radius: 50px;
  transition: all 0.3s ease;
}

a:hover {
  background: #6a1b9a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
}

/* 💾 Form Styling */
form {
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 40px;
  margin: 30px auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  animation: popIn 0.7s ease;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin: 10px 0 15px 0;
  border: 1.5px solid #b39ddb;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
  font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #6a1b9a;
  box-shadow: 0 0 8px rgba(106, 27, 154, 0.3);
}

input[type="submit"] {
  width: 100%;
  background: linear-gradient(45deg, #7e57c2, #ab47bc);
  color: white;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background: linear-gradient(45deg, #ab47bc, #7e57c2);
  transform: scale(1.05);
}

/* 🖼️ Image Gallery Grid */
div img {
  border-radius: 15px;
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

div img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 6px 20px rgba(106, 27, 154, 0.4);
}

/* 🗑️ Delete Button */
.delete-btn {
  background: linear-gradient(45deg, #ef5350, #e53935);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
  transition: all 0.3s;
}

.delete-btn:hover {
  background: linear-gradient(45deg, #e53935, #ef5350);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(239, 83, 80, 0.4);
}

/* 💬 Comments */
b {
  display: block;
  margin-top: 5px;
  color: #4a148c;
}

/* ✨ Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 📱 Responsive */
@media (max-width: 600px) {
  h2 {
    font-size: 1.6rem;
  }

  form {
    padding: 25px;
  }

  a {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}
