/*  Animated Gradient Background */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 20px; 
  min-height: 100vh;
  background: linear-gradient(-45deg, #1e3c72, #2a5298, #6dd5ed, #2193b0);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
} 
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Headings */
h1, h2 {
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Main Button */
#loadUsers {
  display: block;
  margin: 0 auto 20px auto;
  background: linear-gradient(45deg, #007bff, #00c6ff);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
#loadUsers:hover {
  background: linear-gradient(45deg, #0056b3, #0096c7);
  transform: translateY(-2px);
}

/*  Grid Layout */
#users, #savedUsers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* 🪟 Glassmorphism Cards */
.user, #savedUsers p {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.user:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* 🎛 Buttons */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

/* Save Button (Modern Look) */
.saveBtn {
  background: linear-gradient(135deg, #00c853, #4caf50);
  color: #fff;
    border-radius: 12px;
    border: none;
    padding: 9px;
    font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.5);
  position: relative;
}
.saveBtn:hover {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.7);
}

.deleteBtn {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}
.deleteBtn:hover {
  background: linear-gradient(135deg, #c62828, #8e0000);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.6);
}

/* Edit Button */
.editBtn {
  background: linear-gradient(135deg, #ff9800, #f57c00); /* Orange gradient */
  color: #fff;
  margin-right: 10px;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  display: inline-block;
}

/* Hover Effect */
.editBtn:hover {
  background: linear-gradient(135deg, #ef6c00, #e65100); /* Darker orange */
  transform: scale(1.08); /* Slight zoom */
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.6);
}
#searchInput {
  width: 90%;
  max-width: 500px;
  padding: 12px 20px;
  margin: 20px auto;
  display: block;
  border-radius: 30px;
  border: 2px solid #ddd;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#searchInput:focus {
  border-color: #4caf50; /* Green highlight */
  background: #fff;
  outline: none;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
  transform: scale(1.02); /* Slight zoom */
}

#searchInput::placeholder {
  color: #999;
  font-style: italic;
}

/* Toast Notification */
#toast {
  visibility: hidden;
  min-width: 250px;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 30px;
  padding: 12px 20px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 14px;
  z-index: 1000;
  transition: all 0.5s ease;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}


/*  Copy Button */
.copyBtn {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: #fff;
  margin-left: 10px;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}
.copyBtn:hover {
  background: linear-gradient(135deg, #5a6268, #343a40);
  transform: scale(1.05);
}