/* Reset + Base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: #f1f5fa;
  min-height: 100vh;
  overflow-x: hidden;
}

.main-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: linear-gradient(135deg, hsla(298, 68%, 90%, 1) 0%, hsla(30, 82%, 91%, 1) 100%);
  background-size: 200% 200%;
  animation: bgShift 10s ease infinite;
  filter: blur(16px);
  opacity: 0.88;
  pointer-events: none;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 64px auto 32px auto;
  padding: 40px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(80, 60, 160, 0.15), 0 3px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.8s ease;
}

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

h1 {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 36px;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-bottom: -4px;
}

.card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(80, 60, 160, 0.06);
  padding: 26px 20px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  border: 2px solid #cbd5e1;
}

.label-text {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 20px;
}

input[type="password"],
input[type="number"],
textarea,
select,
details#advancedOptions {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px;
  font-size: 1.02rem;
  border: 2px solid #e0e7ff;
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  background: linear-gradient(135deg, hsla(298, 68%, 90%, 1) 0%, hsla(30, 82%, 91%, 1) 100%);
  
  color: #2c041c;
  padding: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
}
.btn:hover {
  background: linear-gradient(135deg, hsla(30, 82%, 91%, 1) 0%, hsla(298, 68%, 90%, 1) 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.output-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.output-card {
  flex: 1 1 100%;
  background: #e5e7eb;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(80, 60, 160, 0.05);
  max-height: 380px;
  overflow-y: auto;
  transition: box-shadow 0.2s;
}
.output-card:hover {
  box-shadow: 0 6px 20px rgba(162, 28, 175, 0.1);
}

.output-card h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #7c3aed;
  border-bottom: 1.5px solid #e0e7ff;
  padding-bottom: 6px;
}

pre {
  white-space: pre-wrap;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1.01rem;
  line-height: 1.6;
  color: #1e293b;
  margin: 0;
}

footer {
  text-align: center;
  margin-top: 36px;
  font-size: 1rem;
  opacity: 0.8;
}
div .Copyright {
  font-weight: bold;
  color: #2c041c;
}
footer .gemini {
  font-weight: bold;
  color: #6366f1;
}
footer a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 24px 12px;
  }
  .output-card {
    max-height: none;
  }
}

details#advancedOptions {
  background: rgba(248, 250, 252, 0.95);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(80, 60, 160, 0.06);
  padding: 18px 16px 10px 16px;
  margin-bottom: 18px;
  border: 2px solid #e0e7ff;
}
details#advancedOptions[open] {
  padding-bottom: 18px;
}
details#advancedOptions summary {
  font-size: 1.08rem;
  font-weight: 700;
  color: #374151;
  outline: none;
  border-radius: 8px;
  padding: 0 0 8px 0;
  margin-bottom: 10px;
  cursor: pointer;
}
details#advancedOptions label.label-text {
  margin-bottom: 10px;
}
details#advancedOptions select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.02rem;
  border: 2px solid #e0e7ff;
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  transition: all 0.3s;
  margin-bottom: 0;
}

.copyright-bar {
  width: 100%;
  text-align: center;
  background: #fff;
  border-top: 1px solid #d0d2d6;
  color: #444;
  font-size: 1rem;
  padding: 17px 0 10px 0;
  opacity: 0.85;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}
