
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #c4b5fd, #a5f3fc, #fbcfe8);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem;
  color: #1e293b;
}


.container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 2rem;
  max-width: 650px;
  width: 100%;
  animation: fadeIn 0.6s ease;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 1.5rem;
}

.logo svg {
  width: 32px;
  height: 32px;
  stroke: #4f46e5;
}


textarea {
  width: 100%;
  border: none;
  outline: none;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  resize: none;
  min-height: 180px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.2rem;
  background: #ffffffdd;
  transition: all 0.2s ease;
}

textarea:focus {
  box-shadow: 0 0 0 3px #c4b5fd;
}


.buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

button {
  flex: 1;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.3s ease;
}

.clear-btn {
  background: #f87171;
  color: #fff;
}

.clear-btn:hover {
  background: #ef4444;
  transform: scale(1.05);
}

.copy-btn {
  background: #60a5fa;
  color: #fff;
}

.copy-btn:hover {
  background: #3b82f6;
  transform: scale(1.05);
}


.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.card {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #1e3a8a;
}


.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4f46e5;
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-size: 0.95rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
