/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  text-align: center;
  width: 90%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #000000;
}

.file-input-container {
  margin-bottom: 25px;
}

input[type="file"] {
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #4facfe;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

input[type="file"]:hover {
  background-color: #4facfe;
  color: #fff;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.control-btn {
  padding: 8px 16px;
  background-color: #4facfe;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background-color: #3d8ad9;
  transform: translateY(-2px);
}

.control-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.pause-btn.paused {
  background-color: #ff9800;
}

.output-container {
  margin-top: 25px;
}

.output {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: left;
  line-height: 1.8;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.loading {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4facfe;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.file-info {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

/* Ensure we preserve the document formatting */
.output p {
  white-space: pre-wrap;
  margin: 0 0 10px 0;
  font-family: inherit;
  line-height: inherit;
}