
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  color: #ffffff;

  display: block;

  background: radial-gradient(circle at top left, #0b1220, #050816 40%, #02040a 100%);
  overflow-x: hidden;
}

/* =========================
   BACKGROUND GLOW LAYERS
========================= */
body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;

  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 60%);
  filter: blur(80px);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  bottom: -180px;
  right: -180px;

  background: radial-gradient(circle, rgba(6,182,212,0.22), transparent 60%);
  filter: blur(90px);
  z-index: -1;
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
  width: 100%;
  min-height: 100vh;

  padding: 20px;
  border-radius: 0;

  background: rgba(255, 255, 255, 0.06);
  border: none;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: none;
}

/* =========================
   CARDS
========================= */
.card {
  padding: 20px;
  margin-bottom: 18px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* glow edge effect */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(99,102,241,0.12), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* .card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(99,102,241,0.25);
} */


.card:hover {
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255, 255, 255, 0.1), 
    transparent 40%
  ), rgba(255, 255, 255, 0.07);
}



.card:hover::before {
  opacity: 1;
}

/* =========================
   BUTTONS (NEON GLASS STYLE)
========================= */
button {
  padding: 11px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
  color: #fff;

  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(59, 130, 246, 0.35);

  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* shine sweep */
button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );

  transition: 0.5s;
}

button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 40px rgba(59, 130, 246, 0.5);
}

button:hover::after {
  left: 100%;
}

button:active {
  transform: scale(0.98);
}

/* =========================
   TEXTAREA (MODERN GLASS INPUT)
========================= */
textarea {
  width: 100%;
  min-height: 110px;

  padding: 14px 16px;
  margin-top: 10px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #ffffff;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  outline: none;
  resize: none;

  transition: all 0.3s ease;
}

textarea:focus {
  border-color: rgba(6,182,212,0.6);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.15);
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

p {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

#output {
  white-space: pre-wrap;
}

.bottom-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

#downloadPdfBtn {
  background: #2563eb;
  color: white;
}

#downloadPdfBtn:hover {
  background: #1d4ed8;
}

#clearBtn {
  background: #dc2626;
  color: white;
}

#clearBtn:hover {
  background: #b91c1c;
}




/* =========================
   ENTRY ANIMATION
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .card {
    padding: 16px;
    margin-bottom: 14px;
  }

  textarea {
    min-height: 90px;
  }

  .bottom-actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
    margin: 40px auto;

    padding: 28px;
    border-radius: 22px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .card {
    padding: 18px;
  }
}

@media (min-width: 1025px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .container {
    max-width: 900px;
    min-height: auto;

    padding: 40px;
    border-radius: 24px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 600px) {
  .card {
    backdrop-filter: blur(12px);
  }
}