/* =====================
   Root + Theme
===================== */
:root {
  --accent: #a855f7;
  --accent-strong: #c084fc;
  --accent-soft: rgba(168, 85, 247, 0.25);

  --bg-main: #1e1e1e;
  --bg-panel: rgba(40, 40, 55, 0.8);
  --bg-panel-strong: rgba(60, 60, 90, 0.9);

  --text-main: #e0e0e0;
  --text-soft: #bfb2ff;

  --deletersDisplay: none;
  --hiddenDisplay: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
  background-color: var(--bg-main);
  background-image: url('/texture/bg-texture.png');
  background-repeat: repeat;
  color: var(--text-main);
}

/* =====================
   Headers
===================== */
h1, h2, h3 {
  margin: 0;
  letter-spacing: 0.6px;
}

/* =====================
   Layout
===================== */
header {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  background: linear-gradient(180deg, #2a2a3a, #1e1e2a);
  border-bottom: 1px solid var(--accent-soft);
}

header > div > div {
  padding: 0 50px;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =====================
   Buttons
===================== */
button {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-family: 'Share Tech Mono', monospace;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background-color: var(--accent);
  color: #1e1e1e;
  box-shadow: 0 0 12px var(--accent-soft);
}

button:active {
  transform: scale(0.98);
}

/* =====================
   Inputs
===================== */
input, select {
  background-color: #2a2a3a;
  color: var(--text-main);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Share Tech Mono', monospace;
}

input:not(input[type=checkbox]) {
  width: min(300px, 40vw);
}

input[type=checkbox] {
  cursor: pointer;
}

/* =====================
   File Upload Box
===================== */
#upload {
  display: block;
  width: 80%;
  margin: 30px auto 40px;
  padding: 30px 0;
  text-align: center;
  font-size: 1rem;
  color: var(--text-soft);
  background-color: rgba(168, 85, 247, 0.05);
  border: 2px dashed var(--accent);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#upload:hover {
  border-color: white;
  background-color: rgba(168, 85, 247, 0.1);
}

#upload::-webkit-file-upload-button {
  display: none;
}

/* =====================
   Output Panel
===================== */
#output {
  margin: 40px auto;
  padding: 20px;
  width: 80%;
  background: var(--bg-panel);
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  animation: fadeUp 0.5s ease;
}

/* =====================
   Utilities
===================== */
.horizontal {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
}

.tiles {
  display: flex;
  flex-direction: column;
}

span {
  background: rgba(255, 255, 255, 0.02);
  margin: 5px 15px;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  transition: background 0.2s ease;
}

span:hover {
  background: rgba(168, 85, 247, 0.1);
}

/* =====================
   Link Styles
===================== */
a {
  color: #9ec8ff;
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
  color: white;
  text-shadow: 0 0 8px var(--accent-soft);
}

/* =====================
   Icons & Toggles
===================== */
label {
  font-weight: 600;
  color: var(--text-soft);
}

.deleter {
  color: #ff6b6b;
  font-weight: bold;
  width: 20px;
  display: var(--deletersDisplay);
  transition: transform 0.15s ease, color 0.15s ease;
}

.deleter:hover {
  color: #ff9a9a;
  transform: scale(1.25);
}

.opener {
  color: #7fd8ff;
  font-weight: bold;
  width: 20px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.opener:hover {
  color: white;
  transform: scale(1.25);
}

.hidden {
  display: var(--hiddenDisplay);
}

/* =====================
   Animations
===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
