/*
Pocket Full of Sunshine - style.css
==================================
Hacker/terminal theme, mobile-first, accessible, and cross-browser optimized.
*/

/* Hide elements with the .hidden class */
.hidden {
  display: none !important;
}

/* File upload styling */
.upload-section {
  margin: 15px 0;
  padding: 10px;
  border: 2px dashed #00ff00;
  border-radius: 4px;
  text-align: center;
  background: rgba(0, 255, 0, 0.1);
}

.file-upload-label {
  display: inline-block;
  padding: 8px 16px;
  background: #00ff00;
  color: #000000;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 5px;
}

.file-format-hint {
  display: block;
  font-size: 0.8em;
  color: #00ff00;
  margin-top: 5px;
}

#clone-file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
body {
  /* Main app container */
  font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
  text-align: center;
  background: #000;
  color: #00ff00;
  padding: 1em;
  min-height: 100vh;
  letter-spacing: 0.5px;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 1em;
  padding: 0.5em;
  margin: 0.5em;
  width: 90%;
  max-width: 320px;
  background: #111;
  color: #00ff00;
  border: 1px solid #00ff00;
  border-radius: 4px;
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
  text-transform: uppercase;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #00ff88;
}
button {
  background: #111;
  color: #00ff00;
  border: 1px solid #00ff00;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 0 4px #00ff00;
  transition: background 0.2s, color 0.2s, border 0.2s;
  width: auto;
  min-width: 150px;
  max-width: 320px;
  display: inline-block;
  margin: 0.5em;
  padding: 0.5em 1em;
}
button:hover {
  background: #003300;
  color: #b6ff00;
  border-color: #b6ff00;
}
#mark-btn {
  background: #00ff00;
  color: #000;
  border: 1.5px solid #00ff00;
  text-shadow: none;
}
#mark-btn:hover {
  background: #b6ff00;
  color: #000;
  border-color: #b6ff00;
}
#qr {
  /* QR code display container, mobile-optimized */
  margin: 20px auto;
  cursor: pointer;
  background: #111;
  border: none;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100vw;
}
.hidden { display: none; }
#cancel-scan-btn.hidden { display: none; }
#reader {
  width: 320px;
  margin: auto;
  background: #111;
  border-radius: 8px;
}
textarea#log {
  background: #101510;
  color: #00ff00;
  width: 95%;
  min-height: 240px;
  margin-top: 1em;
  font-size: 1em;
  border-radius: 6px;
  resize: vertical;
  font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
  border: none;
  border-left: 6px solid #00ff00;
  padding-left: 1em;
  box-shadow: 0 2px 16px #000a inset;
  outline: none;
  line-height: 1.5;
}
h2 {
  color: #00ff00;
  text-shadow: 0 0 12px #00ff00, 0 0 2px #fff;
  font-size: 2.2em;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
  text-transform: uppercase;
}
::selection {
  background: #00ff00;
  color: #000;
}
select#mode-select {
  /* Center dropdown text for all browsers, mobile-friendly */
  text-align: center;
  width: 90%;
  max-width: 320px;
  margin: 0.5em auto;
  display: block;
}
select#mode-select option {
  text-align: center;
}
#clone-file-input {
  display: block;
  margin: 0.5em auto;
  max-width: 320px;
}
/* Responsive tweaks for mobile */
@media (max-width: 480px) {
  #reader, #qr, input, button, select, textarea#log {
    max-width: 98vw;
    font-size: 1em;
  }
  #qr {
    padding: 8px;
  }
}
