/* Global dark theme */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #121212;
  color: #f1f1f1;
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Title */
h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* Other text */
p {
  color: #ffffff;
  text-align: center;
}

/* Labels and inputs */
label {
  display: block;
  margin: 0.5rem 0;
  font-weight: 500;
}

input, button {
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
  background: #1e1e1e;
  color: #f1f1f1;
}

input:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.4);
}

/* Generate button */
button {
  background: #00bcd4;
  color: #121212;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: #0097a7;
  transform: translateY(-1px);
}

/* Links container */
.links {
  margin-top: 2rem;
  width: 100%;
  max-width: 600px;
  display: grid;
  gap: 1rem;
}

/* Each link + QR block */
.link-wrapper {
  background: #1e1e1e;       /* Dark background by default */
  color: #f1f1f1;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.link-wrapper:hover {
  background: #ffffff;       /* Light background on hover */
  color: #121212;
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

/* Link styling */
.link-item {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00bcd4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-wrapper:hover .link-item {
  color: #007bff;
}

.link-item:hover {
  text-decoration: underline;
}

/* QR image */
.qr-img {
  display: block;
  margin: 0.5rem auto;
  width: 150px;
  height: 150px;
  border: 4px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.link-wrapper:hover .qr-img {
  border-color: #fff; /* Add border when card lights up */
}

/* Download button */
.download-btn {
  margin-top: 0.75rem;
  margin-right: 0.25rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #28a745;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
  background: #1e7e34;
  transform: translateY(-1px);
}

.download-btn.alt {
  background: #ff9800;
}

.download-btn.alt:hover {
  background: #e68900;
}

.logs {
  margin-top: 2rem;
  max-width: 800px;
  width: 100%;
  display: grid;
  gap: 1rem;
}

.log-wrapper {
  position: relative;
  width: 100%;
  background: #222;   /* dark background */
  color: #eee;        /* light text */
  margin: 0 0 1rem 0; /* spacing between logs */
  padding: 1rem 2rem; /* keep margins on left/right */
  border-radius: 0;   /* remove rounded corners */
  box-shadow: none;   /* no card shadow */
  text-align: left;   /* keep text left aligned */
}

.log-wrapper h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #fff;
}

.log-wrapper pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 0.95rem;
  color: #ccc;
  background: transparent;
  padding: 0;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: #b71c1c;
}

.log-wrapper {
  position: relative; /* needed for absolute delete button */
}

