
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(145deg, #dbefff, #e2e2ff);
  margin: 0;
  padding: 0;
  transition: background 0.4s, color 0.4s;
}
.dark-mode {
  background: #1c1c1c;
  color: #f0f0f0;
}
.container {
  max-width: 850px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.dark-mode .container {
  background: rgba(20, 20, 20, 0.9);
}
textarea {
  width: 100%;
  height: 180px;
  font-family: monospace;
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}
.upload, select {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
}
.buttons, .controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
button, a {
  flex: 1 1 100px;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}
button:hover, a:hover {
  transform: scale(1.05);
}
#extractBtn { background: #27ae60; }
#pdfBtn { background: #e74c3c; }
#docxBtn { background: #2980b9; }
#txtBtn { background: #8e44ad; }
#speakBtn { background: #f39c12; }
#stopSpeakBtn { background: #d35400; }
#darkToggle { background: #333; }
.progress {
  width: 100%;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar {
  height: 12px;
  background: #3498db;
  width: 0%;
  transition: width 0.4s ease;
}
.svg-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.drop-zone {
  border: 2px dashed #3498db;
  padding: 40px;
  text-align: center;
  color: #666;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 12px;
}
.drop-zone.hover {
  background: #f0f8ff;
}
.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
