/* ===== KlikYa Global Style ===== */
body {
  font-family: "Poppins", sans-serif;
  /*background: linear-gradient(135deg, #1e90ff, #6a11cb);*/
  background: linear-gradient(135deg, #007bff, #00c6ff);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  width: 350px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

input:focus {
  border-color: #1e90ff;
  outline: none;
  box-shadow: 0 0 5px rgba(30,144,255,0.3);
}

button {
  width: 100%;
  padding: 12px;
  background: #1e90ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #0b74d4;
}

.error {
  color: #e74c3c;
  font-size: 14px;
  margin-bottom: 10px;
}

.link {
  margin-top: 15px;
  display: block;
  font-size: 14px;
  color: #1e90ff;
  text-decoration: none;
  transition: 0.3s;
}

.link:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.link-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.link-item:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.link-item a {
  color: #1a73e8;
  font-weight: 500;
  text-decoration: none; /* ❌ hilangkan underline */
}

.link-item a:hover {
  text-decoration: none; /* ❌ pastikan tetap tanpa underline */
  color: #0b5ed7; /* sedikit lebih gelap saat hover */
}

.link-item a.delete {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 14px;
  border-radius: 6px;
  padding: 4px 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.link-item a.delete:hover {
  background: #fca5a5;
}