@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&display=swap');

body {
  background: radial-gradient(circle at 70% 30%, #181a20 50%, #101014 100%);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin: 0; padding: 0;
  color: #e5eaf5;
  min-height: 100vh;
}

.container {
  margin: 46px auto 0 auto;
  max-width: 780px;
  background: rgba(28,32,40,0.95);
  border-radius: 22px;
  box-shadow: 0 8px 48px 0 rgba(20,23,38,0.38);
  padding: 58px 34px 54px 34px;
  backdrop-filter: blur(2.5px);
  border: 1.5px solid #272D36;
}

h1 {
  text-align: center;
  font-family: 'Press Start 2P', monospace, Arial, sans-serif;
  font-size: 1.55em;
  font-weight: normal;
  margin-bottom: 16px;
  letter-spacing: 0.015em;
  color: #e5f9ff;
  line-height: 1.45;
  text-shadow: 0 1px 0 #1d2a3f, 0 2px 8px #2732444d;
}

h2 {
  margin-top: 0;
  margin-bottom: 22px;
  color: #a179bf;
  font-size: 1.3em;
  font-weight: 600;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 52px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

#menu h2 {
  font-size: 1.05em;
  color: #a179bf;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.menu-tasks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  margin-bottom: 22px;
  max-width: 650px;
}
.menu-tasks button {
  flex: 1 1 180px;
  min-width: 170px;
  max-width: 240px;
}

.menu-beta-block {
  margin: 24px 0 24px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.menu-beta-label {
  color: #b388d8;
  font-size: 1em;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.005em;
}
.menu-beta-block button {
  min-width: 190px;
  margin-top: 8px;
}

.menu-extra {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 0;
  width: 100%;
}
.menu-extra button {
  min-width: 190px;
}

#menu button, button {
  width: 210px;
  padding: 11px 0;
  font-size: 1em;
  margin: 5px 0 5px 0;
  background: #341539;
  color: #e0d7e9;
  border: 1.5px solid #44224d;
  border-radius: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 rgba(52,21,57,0.07);
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, border 0.14s;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
#menu button:hover, button:hover, button:focus {
  background: #4e2360;
  color: #ffe8fe;
  box-shadow: 0 4px 28px 0 rgba(52,21,57,0.13);
  border: 1.5px solid #78417e;
  outline: none;
}

.process-section {
  background: rgba(23,25,32, 0.97);
  border: 1.5px solid #23273a;
  border-radius: 18px;
  box-shadow: 0 3px 20px 0 rgba(50,70,80,0.08);
  padding: 34px 34px 30px 34px;
  margin-bottom: 26px;
  animation: fadeIn 0.34s;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.flex-row {
  display: flex;
  gap: 2rem;
  margin: 26px 0 4px 0;
}

.textbox, .outputbox {
  width: 340px;
  height: 320px;
  padding: 15px;
  border: 1.5px solid #23273a;
  border-radius: 12px;
  font-size: 1.08em;
  background: #181a20;
  color: #d6ecfc;
  resize: none;
  transition: border 0.13s, box-shadow 0.13s;
  box-shadow: 0 1px 14px 0 rgba(40,70,170,0.04);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.textbox:focus, .outputbox:focus {
  border: 1.5px solid #78417e;
  outline: none;
}
.outputbox {
  background: #23253d;
  color: #adbbbe;
}

.back-btn {
  background: #341539 !important;
  color: #e0d7e9 !important;
  margin-top: 32px;
  font-weight: 600;
  border: 1.5px solid #44224d !important;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  box-shadow: 0 2px 8px 0 rgba(52,21,57,0.07);
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, border 0.14s;
}
.back-btn:hover, .back-btn:focus {
  background: #4e2360 !important;
  color: #ffe8fe !important;
  box-shadow: 0 4px 28px 0 rgba(52,21,57,0.13);
  border: 1.5px solid #78417e !important;
}

.vat-container {
  max-width: 380px;
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.vat-container label {
  font-weight: 700;
  color: #a179bf;
  font-size: 1em;
}
.vat-container input[type="number"] {
  padding: 10px 16px;
  font-size: 1.09em;
  border: 1.5px solid #253050;
  border-radius: 8px;
  background: #131418;
  color: #e7faff;
  margin-bottom: 4px;
  transition: border 0.13s;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.vat-container input[type="number"]:focus {
  border: 1.5px solid #78417e;
  outline: none;
}
.vat-buttons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.vat-buttons button {
  flex: 1;
  background: #341539;
  color: #e0d7e9;
  font-weight: 600;
  border-radius: 7px;
  padding: 12px;
  margin-top: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  transition: background 0.16s, color 0.16s;
}
.vat-buttons button:hover, .vat-buttons button:focus {
  background: #4e2360;
  color: #ffe8fe;
}
#vat-result {
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 1.12em;
  padding: 10px 13px;
  border-radius: 7px;
  border: 1.3px solid #242835;
  background-color: #181a1b;
  color: #8fadc5;
}

.pdf-excel-container {
  display: flex;
  gap: 17px;
  align-items: center;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

input[type="file"] {
  color: #d7eafe;
  background: transparent;
  padding: 8px 3px;
  font-size: 1.025em;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
input[type="file"]::file-selector-button {
  padding: 8px 22px;
  background: #341539;
  border: none;
  color: #e0d7e9;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.15s;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
input[type="file"]::file-selector-button:hover {
  background: #4e2360;
  color: #ffe8fe;
}

p#pdf-excel-status {
  color: #b7d3ef;
  margin-top: 9px;
  font-size: 1.07em;
  margin-bottom: 0;
}

.barcode-gen-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 12px;
}
#barcode-svg {
  background: #f8f8fb;
  margin-top: 14px;
  border-radius: 9px;
  border: 1px solid #23273a;
  min-height: 60px;
  min-width: 250px;
  display: block;
}
#barcode-type, #barcode-value {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1.5px solid #23273a;
  font-size: 1em;
  background: #16191d;
  color: #e0d7e9;
  margin-bottom: 2px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
#barcode-type:focus, #barcode-value:focus {
  border: 1.5px solid #78417e;
  outline: none;
}

::-webkit-scrollbar {
  width: 10px;
  background: #212333;
}
::-webkit-scrollbar-thumb {
  background: #363a4d;
  border-radius: 9px;
}
@media (max-width: 900px) {
  .flex-row {
    flex-direction: column;
    gap: 1rem;
  }
  .textbox, .outputbox {
    width: 100%;
  }
  .container, .process-section {
    padding: 18px 5vw 32px 5vw;
  }
}
