body {
  font-family: monospace;
  background-color: #f8f8f8;
  margin: 0;
  padding: 30px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.title {
  background: yellow;
  padding: 20px;
  border: 2px solid black;
  margin-bottom: 20px;
}

.version {
  font-size: 0.9em;
  color: black;
}

.main-grid {
  display: flex;
  gap: 30px;
}

.input-section, .output-section {
  flex: 1;
}

label {
  display: block;
  font-weight: bold;
  margin: 15px 0 5px;
}

textarea, select {
  width: 100%;
  font-family: monospace;
  font-size: 16px;
  padding: 10px;
  border: 3px solid black;
  margin-bottom: 10px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background-color: red;
  color: white;
  border: 3px solid black;
  font-weight: bold;
  cursor: pointer;
}

pre {
  background: #eee;
  padding: 15px;
  border: 2px solid black;
  overflow-x: auto;
  min-height: 200px;
}

.nav-menu {
  margin-bottom: 20px;
}

.nav-menu a {
  margin-right: 10px;
  padding: 10px 15px;
  background: #ddd;
  text-decoration: none;
  color: black;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 5px;
}

.nav-menu a.active {
  background: #ff0;
  color: black;
}

.menu-buttons {
  display: flex;
  gap: 20px;
  margin: 20px 0 30px;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f0f0f0;
  border: 2px solid black;
  font-weight: bold;
  font-family: monospace;
  color: black;
  text-decoration: none;
  transition: background-color 0.2s;
}

.menu-btn:hover {
  background-color: yellow;
}

.menu-btn img {
  width: 20px;
  height: 20px;
}

.welcome-box {
  background: #fefec6;
  padding: 20px;
  border: 2px dashed black;
  font-family: monospace;
  font-size: 1.1em;
}
#charCount {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: -5px;
  margin-bottom: 10px;
  display: block;
}

pre {
  background: #111827;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 600px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #374151;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}

.csv-table th,
.csv-table td {
  padding: 12px;
  border: 1px solid #374151;
  text-align: left;
}

.csv-table th {
  background: #1f2937;
  font-weight: bold;
}

.csv-table tr:nth-child(even) {
  background: #1a2233;
}

.csv-table tr:hover {
  background: #253047;
}

#tableContainer {
  overflow-x: auto;
  margin-top: 15px;
}
