body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e1e;
  color: #eee;
  padding: 2rem;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../img/bg.gif') center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.upload-box,
.output-section {
  background-color: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 1rem 1.5rem;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

.upload-box {
  padding: 1rem;
}

.output-section {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.output-section h2 {
  margin: 0 0 1rem;
  text-align: left;
  width: 100%;
}

.output-section pre {
  background: #232323;
  border-radius: 8px;
  font-size: 1rem;
  padding: 1rem;
  margin: 0 0 1rem;
  width: 100%;
  min-height: 120px;
  max-height: 400px;
  overflow: auto;
  box-sizing: border-box;
}

.output-section button {
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: #444;
  color: white;
  cursor: pointer;
}

.output-section button:hover {
  background: #5a5a5a;
}

label,
select,
input[type="file"],
button {
  display: block;
  margin: 0.5rem 0;
}

select,
button {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: #444;
  color: white;
}

select:hover,
button:hover {
  background: #5a5a5a;
  cursor: pointer;
}

.status {
  margin-top: 0.5rem;
  font-style: italic;
  color: #9cdcfe;
}

.log-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;

  border: 4px dotted rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
}

.log-box {
  font-family: monospace;
  font-size: 0.9rem;
  color: #d4d4d4;
  white-space: pre-wrap;

  background-color: rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(16px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);

  padding: 1rem 1.5rem;
  max-width: 1200px;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  box-sizing: border-box;

  flex-grow: 1;
}


*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  background: transparent; /* This hides the track background */
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent thumb */
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

pre  {
  background-color: rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 1rem 1.5rem;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}