:root{
  --card-bg: rgba(255,255,255,0.78);
  --card-border: rgba(255,255,255,0.35);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.65);
  --shadow: 0 20px 50px rgba(0,0,0,0.18);
  --radius: 18px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;

  /* default gradient (JS ho môže prepísať) */
  background: linear-gradient(to bottom, #74ebd5, #acb6e5);

  display:flex;
  align-items:center;
  justify-content:center;

  padding: 28px;
  transition: background 0.6s ease;
}

.shell{
  width: 100%;
  max-width: 520px;
}

.card{
  width: 100%;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;

  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}

.header{
  padding: 22px 22px 8px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
  font-weight: 600;
  font-size: 0.85rem;
  width: fit-content;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,197,94,0.9);
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
}

.title{
  margin-top: 12px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.form{
  padding: 14px 22px 18px;
}

.label{
  display:block;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.8);
  margin-bottom: 10px;
}

.inputRow{
  display:flex;
  gap: 10px;
}

.input{
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255,255,255,0.85);
  outline: none;
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.input::placeholder{
  color: rgba(15, 23, 42, 0.38);
}

.input:focus{
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 5px rgba(59,130,246,0.18);
  transform: translateY(-1px);
}

.btn{
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;

  font-weight: 700;
  font-size: 0.98rem;
  color: white;

  background: linear-gradient(135deg, rgba(59,130,246,1), rgba(147,51,234,1));
  box-shadow: 0 10px 24px rgba(59,130,246,0.25);

  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(59,130,246,0.28);
}

.btn:active{
  transform: translateY(0px);
}

.hint{
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
}

.output{
  margin: 0 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.7);
  padding: 16px;

  display: none; /* JS prepína cez .show */

  /* 👇 CENTROVANIE */
  text-align: center;
}

.output.show{
  display: block;
}

/* aby tvoj výstup (p tagy + img + error icon) vyzeral pekne */
#output p{
  margin: 6px 0;
  font-size: 1rem;
}

#output img{
  display: block;
  margin: 14px auto 0 auto;
  width: 80px;
  height: 80px;

  padding: 10px;
  border-radius: 16px;

  /* trochu tmavší glass podklad (pomôže kontrastu) */
  background: rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* 👇 toto spraví obrys aj pre biely mrak */
  filter:
    drop-shadow(0 2px 2px rgba(0,0,0,0.35))
    drop-shadow(0 0 10px rgba(0,0,0,0.25));

  box-shadow:
    0 10px 30px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.25);
}

.footer{
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display:flex;
  justify-content: center;
}

.footerText{
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.55);
}

@keyframes fadeUp{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px){
  body{ padding: 18px; }
  .inputRow{ flex-direction: column; }
  .btn{ width: 100%; }
}
