@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Prompt", sans-serif;
}

body {
  background: linear-gradient(135deg, #dbeafe, #ffffff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.2);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h1 {
  font-size: 2.3rem;
  color: #1e3a8a;
}

.subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0.8rem 0 2rem;
}

.input-box {
  display: flex;
  gap: 0.6rem;
}

.input-box input {
  flex: 1;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  outline: none;
  transition: 0.3s;
}

.input-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.primaryBtn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: 0.3s;
}

.primaryBtn:hover {
  background: #1d4ed8;
}

.result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 0.9rem;
  word-break: break-all;
}

.result a {
  color: #2563eb;
  text-decoration: none;
}

.actionBtns {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.outlineBtn {
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  transition: 0.3s;
}

.outlineBtn:hover {
  background: #2563eb;
  color: white;
}

.historyBtn {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 500;
  cursor: pointer;
}

.historyModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.historyBox {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 1.5rem;
}

.historyHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.historyList {
  margin-top: 1rem;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}

.historyList li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.historyList a {
  color: #2563eb;
  text-decoration: none;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.socials {
  margin-top: 0.6rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  font-size: 1.2rem;
}

.socials a {
  color: #2563eb;
  transition: 0.3s;
}

.socials a:hover {
  color: #1e3a8a;
  transform: scale(1.2);
}

.toast {
  position: fixed;
  bottom: 30px;
  background: #ef4444;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.toast.success {
  background: #16a34a;
}

.hidden {
  display: none;
}

@media (max-width: 500px) {
  .input-box {
    flex-direction: column;
  }
}
