/* 🌌 Dynamische achtergrond */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f0f0f0;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
html, body {
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* voor soepel scrollen op iOS */
}

/* 🌓 Semi-transparante overlay voor leesbaarheid */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* 🧊 Glassmorphism container */
.glass-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 48px 36px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);

  width: 100%;
  max-width: 720px;
  margin: auto;
  box-sizing: border-box;
  z-index: 1;
}


/* 🔐 Titel */
h2 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* 📝 Invoervelden met gecentreerde uitstraling en glass-effect */
input[type="text"],
textarea {
  width: 100%;
  max-width: 640px;
  padding: 16px 20px;
  margin: 20px auto 0;
  display: block;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 17px;
  outline: none;
  resize: none;
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.1),
    0 0 12px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  text-align: left;
  box-sizing: border-box;
}

body.apple-device {
  background: linear-gradient(135deg, #0f3d2e, #1a5f47);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



textarea {
  height: 140px;
}

/* 🧠 Focusstijl met subtiele glow */
input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.2),
    0 0 16px rgba(255, 255, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #eaeaea; /* Helder witgrijs voor goede leesbaarheid */
  opacity: 1;     /* Zorg dat het niet transparant is */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3); /* Subtiele donkere gloed voor contrast */
}


/* 🧮 Knoppenrij */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
}

/* 🧊 Glazen knoppen */
button {
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  flex: 1 1 40%;
  min-width: 130px;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.15),
    inset 0 0 6px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

/* 🖱️ Hover-effect met lichte glow */
button:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.25),
    inset 0 0 8px rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}


/* 📦 Resultaat */
.result-box {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  font-size: 15px;
  word-break: break-word;
  color: #ffffff;
  text-align: left;
  animation: fadeIn 0.4s ease-in-out;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.result-box.error {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4d4d;
}

/* ✨ Animaties */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.copy-badge {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  z-index: 9999;
  animation: popIn 0.3s ease-out;
}

.copy-badge.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: all 0.6s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 📱 Mobielvriendelijk */
@media (max-width: 480px) {
  .glass-container {
    width: 90%;
    padding: 24px 16px;
  }

  input[type="text"],
  textarea {
    font-size: 15px;
  }

  button {
    flex: 1 1 100%;
    min-width: unset;
  }
}

.key-options {
  width: 100%;
  max-width: 640px;
  margin: 20px auto;
  color: #fff;
  font-size: 16px;
}

.key-options summary {
  cursor: pointer;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-weight: 600;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.15),
    inset 0 0 6px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.key-options[open] summary {
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.25),
    inset 0 0 8px rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.security-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.security-modal-content {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  animation: fadeIn 0.4s ease-in-out;
}

.security-modal-content h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.security-modal-content ul {
  margin: 12px 0 16px;
  padding-left: 20px;
}

.security-modal-content button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.security-modal-content button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
