/* Scrollbars */
::-webkit-scrollbar { 
  width: 5px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
}

/* Body and Structure */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #000;
  color: #fff;
}

header {
  background: #1a1919;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.upload-section,
.editor,
.analysis,
.download {
  margin-bottom: 2rem;
}

/* Text Input */
textarea {
  width: 96%;
  height: 300px;
  padding: 1rem;
  color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  background-color: #1a1919;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  resize: vertical;
  white-space: pre-wrap;
}

/* Buttons */
button {
  background-color: #3949ab;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #303f9f;
}

/* Output & Analysis Display */
.analysis {
  background: #1a1919;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

#output {
  max-height: 400px;
  overflow-y: auto;
  white-space: normal;
  padding: 1rem;
  background-color: #111;
  border-radius: 6px;
  border: 1px solid #444;
  margin-bottom: 1rem;
}

/* Correction Highlighting */
.highlight {
  color: #00ff00;
  font-weight: bold;
  background-color: rgba(0, 255, 0, 0.1);
  padding: 0 3px;
  border-radius: 3px;
}

.repeat {
  background-color: yellow;
  color: black;
  font-weight: bold;
  padding: 0 3px;
  border-radius: 3px;
}

.capitalized {
  color: #3399ff;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0 3px;
  border-radius: 3px;
}

s {
  color: red;
  text-decoration: line-through;
}

/* Detailed Analysis List */
#analysis ul {
  padding-left: 20px;
  margin-top: 10px;
}
#analysis li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
#analysis code {
  background-color: #222;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ff8080;
}
