/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
  background: linear-gradient(135deg, #0b1220, #111a2e);
  color: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Ultra‑glass container */
.container {
  width: 100%;
  max-width: 640px;
  padding: 32px;
  border-radius: 22px;

  /* More translucent + more blur */
  background: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);

  animation: fadeIn 0.6s ease-out;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  text-align: center;

  /* More premium light blue */
  color: #5fd4ff;
  letter-spacing: -0.5px;
}

/* Drag & drop area */
#drop-area {
  border: 2px dashed rgba(95, 212, 255, 0.45);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  margin-bottom: 20px;

  /* More translucent */
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px);

  transition: all 0.35s ease;
}

#drop-area.dragging {
  border-color: #5fd4ff;
  background: rgba(10, 25, 47, 0.55);
  transform: scale(1.03);
}

/* Upload button */
.upload-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 14px;

  /* Upgraded neon‑ice gradient */
  background: linear-gradient(135deg, #5fd4ff, #38bdf8);
  color: #0f172a;

  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;

  box-shadow: 0 8px 22px rgba(95, 212, 255, 0.35);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 212, 255, 0.45);
}

/* Inputs */
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  margin: 16px 0;

  border: 1px solid rgba(95, 212, 255, 0.25);
  border-radius: 14px;

  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);

  color: #f1f5f9;
  transition: 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #5fd4ff;
  background: rgba(15, 23, 42, 0.55);
}

/* Buttons */
button {
  padding: 14px 18px;
  border: none;
  border-radius: 14px;

  background: linear-gradient(135deg, #5fd4ff, #38bdf8);
  color: #0f172a;

  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;

  box-shadow: 0 8px 22px rgba(95, 212, 255, 0.35);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 212, 255, 0.45);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Result box */
#result {
  margin-top: 24px;
  animation: fadeIn 0.5s ease-in-out;
}

.share-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

#shareLink {
  flex: 1;
}

/* QR Code */
#qrcode {
  margin-top: 16px;
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
