h1 {
  margin: 40px auto 30px;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-align: center;
}


main {
  flex-grow: 1;
  padding: 1.5rem;
  max-width: 700px;
  margin: 40px auto 300px;
  width: 100%;
  box-sizing: border-box;
  background: #394555;
  border-radius: 10px;
  color: #fff;
}

h1 {
  color: #fff;
  margin-bottom: -1rem;
  text-align: center;
}

#dropZone {
  border: 2px dashed #1e40af;
  background: #e0e7ff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 1rem;
  transition: .3s;
  cursor: pointer;
}

#dropZone.dragover {
  background: #c7d2fe;
}

textarea {
  width: 100%;
  height: 150px;
  padding: .75rem;
  font-size: 1rem;
  border: 2px solid #1e40af;
  border-radius: 6px;
  margin-bottom: 1rem;
  resize: vertical;
  box-sizing: border-box;
  background: #fff;
  spellcheck: true;
}

.filename-input input {
  width: 100%;
  padding: .5rem;
  font-size: 1rem;
  border: 2px solid #1e40af;
  border-radius: 6px;
  box-sizing: border-box;
  margin: .3rem 0 .8rem 0;
}

.counter, .speed {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.history {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: .75rem;
  margin-bottom: .5rem;
  color: #fff;
  max-height: 150px;
  overflow-y: auto;
}

.history h3 {
  margin: 0 0 .5rem;
  color: #fff;
}

.buttons, .history-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

button {
  background: #1e40af;
  color: white;
  border: none;
  padding: .6rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

button:hover {
  background: #153e75;
}

#spellCheckBtn {
  background: #10b981;
}

#spellCheckBtn:hover {
  background: #0f9d77;
}

#suggestions {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: .75rem;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
  white-space: normal;
  font-family: Arial, sans-serif;
  color: #111827;
}