body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  margin: 0;
}

.container {
  width: 420px;
}

.section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

input[type="text"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-sizing: border-box;
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

button {
  width: 100%;
  padding: 0.85rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}

button.start {
  background-color: #4a90e2;
  color: white;
}
button.start:hover {
  background-color: #357abd;
}
button.pause {
  background-color: #f44336;
  color: white;
}
button.pause:hover {
  background-color: #c62828;
}
button.resume {
  background-color: #4caf50;
  color: white;
}
button.resume:hover {
  background-color: #388e3c;
}

#controlBox {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.control-buttons {
  display: flex;
  gap: 10px;
}
.control-buttons button {
  flex: 1;
}

.status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  white-space: pre-wrap;
}
.copy-box {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #eef3ff;
  border: 1px solid #bcd0ff;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copy-icon {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.2s;
}
.copy-icon:hover {
  background: #dce6ff;
}

.drop-zone {
  border: 2px dashed #7aa7ff;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  color: #555;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: 0.2s;
  background-color: #fafbfc;
}
.drop-zone:hover {
  background-color: #f0f2f5;
  border-color: #4a90e2;
}
.drop-zone.dragover {
  background: #eef3ff;
  border-color: #4c7fff;
  border-width: 2px;
}
.drop-zone .highlight {
  color: #0078d7;
  font-weight: bold;
}
.drop-zone input[type="file"] {
  display: none;
}
.drop-zone-text {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}
.drop-zone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#resultsBox {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.output {
  background-color: #f3f4f6;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
}
