/* ------------------------------
   Global Reset
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------------------------
   Base Typography & Layout
------------------------------ */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
  padding: 0 20px;
}

main {
  max-width: 800px;
  margin: 40px auto;
}

/* ------------------------------
   Header & Navigation
------------------------------ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

header .logo {
  height: 40px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover {
  color: #0077cc;
}

/* ------------------------------
   Headings
------------------------------ */
h1, h2, h3 {
  margin-bottom: 20px;
  font-weight: 600;
}

/* ------------------------------
   Buttons
------------------------------ */
button {
  margin-top: 20px;
  background: #0077cc;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  margin-right: 10px;
}

button:hover {
  background: #005fa3;
}

/* ------------------------------
   File Inputs
------------------------------ */
input[type="file"] {
  margin: 20px 0;
}

/* ------------------------------
   Output Box
------------------------------ */
#output {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 20px;
  white-space: pre-wrap;
  font-family: monospace;
  overflow-x: auto;
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  text-align: center;
  padding: 30px 0;
  color: #666;
  font-size: 14px;
}