@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

.container {
    max-width: 560px;        /* was 800px, try 560 for a tighter look */
    width: 96vw;             /* nearly full width on mobile, but never goes past max */
    margin: 40px auto 0 auto;
    padding: 32px 18px 28px 18px; /* desktop: generous padding but not too much */
    background: rgba(20, 20, 20, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 20px #00ffee, 0 0 40px #ff00ff50;
    box-sizing: border-box;
}

@media (max-width: 700px) {
  .container {
    max-width: 99vw;
    padding: 14px 2vw 12px 2vw;  /* much tighter on mobile */
    margin: 18px auto;
  }
}

body {
    font-family: 'Orbitron', sans-serif;
    background: #0d0d0d;
    padding: 40px;
    text-align: center;
    color: #00ffee;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    padding: 40px;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 20px #00ffee, 0 0 40px #ff00ff50;
}


h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff, 0 0 15px #ff00ff;
}

.subtext {
    font-size: 18px;
    color: #88f9f9;
    margin-bottom: 30px;
}

input[type="file"] {
    font-size: 14px;
    margin-top: 15px;
    background: #111;
    color: #00ffee;
    border: 1px solid #00ffee;
    padding: 10px;
    border-radius: 6px;
}

a.button, .btn {
    background: linear-gradient(135deg, #00ffee, #ff00ff);
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffee, 0 0 25px #ff00ff;
    transition: transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

a.button:hover, .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffee, 0 0 40px #ff00ff;
}

nav {
    margin: 30px 0;
}

nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #00ffee;
    font-weight: bold;
    transition: 0.2s;
}

.language-switcher {
  float: right;
  font-size: 0.9em;
  margin-top: 4px;
}

nav::after {
  content: "";
  display: table;
  clear: both;
}

nav a:hover, nav a.active {
    text-decoration: underline;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.summary-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #00ff99;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
    white-space: pre-wrap;
    color: #00ffee;
    border-radius: 10px;
    box-shadow: 0 0 12px #00ff99;
}

.result-box {
  margin-top: 30px;
  padding: 15px 20px;
  border: 1px solid #00ffee;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  text-align: left;
  white-space: pre-wrap;         /* ✅ allow multiline */
  word-wrap: break-word;         /* ✅ break long words */
  overflow-wrap: break-word;     /* ✅ handle long tokens */
  font-family: monospace;
  color: #00ffee;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: 0 0 15px #00ffee44;
}

.summary-box pre {
    background-color: transparent;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
}

.button-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-upload {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 10px #00ffee88;
}

#fileList {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    color: #fff;
}

#fileList li {
    margin-bottom: 5px;
    background: #111;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ffee;
    box-shadow: 0 0 10px #00ffee44;
}

#fileList button {
    background: #ff0055;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 10px #ff0055;
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    font-size: 16px;
    color: #00ffee;
    text-decoration: none;
}

.back-link:hover {
    text-shadow: 0 0 10px #00ffee;
    color: #ff00ff;
}

.dropdown {
  float: right;
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.dropbtn {
  background-color: transparent;
  color: #00ffee;
  border: 2px solid #00ffee;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}

.dropbtn:hover {
  background-color: #00ffee33;
  color: #ff00ff;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #111;
  min-width: 160px;
  box-shadow: 0 0 15px #00ffee;
  z-index: 1;
  border-radius: 6px;
}

.dropdown-content a {
  color: #00ffee;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #222;
  color: #ff00ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === LIGHT MODE === */
html.light-mode body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    background: #f9f9f6 !important;
    color: #232323 !important;
}

html.light-mode .container {
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 4px 32px #e0e0dc66, 0 1.5px 7px #dedede22 !important;
    border-radius: 18px !important;
}

html.light-mode h1, 
html.light-mode nav a,
html.light-mode .subtext {
    color: #4b405a !important;
    text-shadow: none !important;
}

html.light-mode h1 {
    font-size: 32px;
    color: #c59143 !important;
    letter-spacing: 2px;
    font-weight: 700;
}

html.light-mode .subtext {
    color: #837b6b !important;
}

html.light-mode nav a {
    color: #6c5d36 !important;
    font-weight: 600;
}

html.light-mode nav a:hover, 
html.light-mode nav a.active {
    color: #c59143 !important;
    text-shadow: 0 1px 8px #f8e6be99;
    text-decoration: underline;
}

html.light-mode .dropdown-content {
    background-color: #fcfbf7 !important;
    box-shadow: 0 2px 14px #e0d9bb55;
}

html.light-mode .dropdown-content a {
    color: #6c5d36 !important;
}

html.light-mode .dropdown-content a:hover {
    background-color: #f2e7c5 !important;
    color: #c59143 !important;
}

html.light-mode .dropbtn {
    background-color: transparent !important;
    color: #7a7055 !important;
    border: 2px solid #ede3c7 !important;
}

html.light-mode .dropbtn:hover {
    background-color: #fffbe6 !important;
    color: #c59143 !important;
}

html.light-mode .btn, 
html.light-mode a.button {
    background: linear-gradient(90deg, #ffe8ae 30%, #f5e5c0 100%) !important;
    color: #333 !important;
    box-shadow: 0 2px 12px #f0e6cd88;
    border: 1.5px solid #c59143;
    transition: 0.15s;
}

html.light-mode .btn:hover, 
html.light-mode a.button:hover {
    background: #fffbe6 !important;
    color: #c59143 !important;
    box-shadow: 0 6px 24px #edd8a777;
    transform: scale(1.04);
}

html.light-mode .file-upload,
html.light-mode .summary-box {
    background: #f6f3ea !important;
    box-shadow: 0 1px 4px #e0e0dc33;
    border-left: 4px solid #c59143;
    color: #38352c !important;
}

html.light-mode .summary-box {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

html.light-mode .result-box,
html.light-mode #fileList li {
    background: #f5eee1 !important;
    color: #38352c !important;
    border: 1.5px solid #e7d7b8 !important;
    box-shadow: 0 2px 6px #e0d9bb33;
}

html.light-mode #fileList button {
    background: #ffe8ae !important;
    color: #7a7055 !important;
    box-shadow: 0 0 6px #ffe8ae77;
}

html.light-mode .back-link {
    color: #b89b46 !important;
}

html.light-mode .back-link:hover {
    color: #7a7055 !important;
    text-shadow: 0 2px 10px #ede3c766;
}

html.light-mode .file-upload {
    background: #fffef9 !important;
    box-shadow: 0 1.5px 10px #ede3c744, 0 1px 4px #f9f2dc55;
    border-radius: 10px !important;
    padding: 20px;
    margin-bottom: 25px;
    border: 1.5px solid #e7d7b8;
    /* If you have a border or want to add a border */
}

html.light-mode input[type="file"] {
    font-size: 14px;
    margin-top: 15px;
    background: #fcfaf5 !important;
    color: #7a7055 !important;
    border: 1.5px solid #c59143 !important;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px #ede3c777;
    /* Remove glow or neon for light mode */
}
