* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  min-height: 100%;
}

body {
  background: #7fbdb3;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Animated pastel mesh/liquid background */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #7fbdb3;
}

/* First animated gradient layer */
.animated-bg::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 35%, #7fbdb3 0%, rgba(127, 189, 179, 0) 60%),
    radial-gradient(circle at 25% 75%, #f1d8a6 0%, rgba(241, 216, 166, 0) 62%),
    radial-gradient(circle at 55% 10%, #f7b6a3 0%, rgba(247, 182, 163, 0) 65%),
    radial-gradient(circle at 85% 40%, #c62a45 0%, rgba(198, 42, 69, 0) 60%);
  filter: blur(65px);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: meshMove1 8s ease-in-out infinite alternate;
}

/* Second animated gradient layer */
.animated-bg::after {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 15% 25%, rgba(127, 189, 179, 0.9) 0%, rgba(127, 189, 179, 0) 58%),
    radial-gradient(circle at 35% 85%, rgba(241, 216, 166, 0.85) 0%, rgba(241, 216, 166, 0) 60%),
    radial-gradient(circle at 65% 15%, rgba(247, 182, 163, 0.9) 0%, rgba(247, 182, 163, 0) 62%),
    radial-gradient(circle at 90% 55%, rgba(198, 42, 69, 0.85) 0%, rgba(198, 42, 69, 0) 60%);
  filter: blur(85px);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: meshMove2 11s ease-in-out infinite alternate;
}

/* Slightly visible background movement */
@keyframes meshMove1 {
  0% {
    transform: translate(-10%, -7%) scale(1.1);
  }

  50% {
    transform: translate(10%, -5%) scale(1.2);
  }

  100% {
    transform: translate(-6%, 10%) scale(1.15);
  }
}

@keyframes meshMove2 {
  0% {
    transform: translate(7%, 5%) scale(1.14);
  }

  50% {
    transform: translate(-10%, 7%) scale(1.25);
  }

  100% {
    transform: translate(6%, -10%) scale(1.18);
  }
}

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce) {
  .animated-bg::before,
  .animated-bg::after {
    animation: none;
  }
}

/* Main card container */
.container {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
}

h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.case-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.case-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  background: #e0e0e0;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.case-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.case-btn.active {
  background: #2575fc;
  color: white;
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

.status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}

.status.success {
  background-color: #d4edda;
  color: #155724;
}

.status.error {
  background-color: #f8d7da;
  color: #721c24;
}

.manual-copy-btn {
  margin: 12px auto 0;
  padding: 12px 22px;
  border: none;
  border-radius: 50px;
  background: #e74c3c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.35);
  display: none;
}

.manual-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(231, 76, 60, 0.45);
}

.instructions {
  background-color: #f8f9fa;
  border-left: 4px solid #2575fc;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin-top: 25px;
  text-align: left;
}

.instructions h3 {
  margin-bottom: 10px;
  color: #333;
}

.instructions ul {
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 8px;
  color: #555;
}

.footer {
  margin-top: 25px;
  color: #777;
  font-size: 0.9rem;
}

/* Mobile fix */
@media (max-width: 600px) {
  body {
    align-items: flex-start;
    padding: 15px;
  }

  .container {
    margin: 15px 0 30px;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .case-selector {
    gap: 10px;
  }

  .case-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  textarea {
    height: 140px;
  }
}