* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  /*padding: 40px 20px;*/
  margin-top: 60px;
  overflow: hidden;
  flex: 1;
}

.converter-container {
  max-width: 1200px;
  margin: 0 auto;
}

.drop-zone {
  background: #fff;
  border: 3px dashed var(--primary-color);
  border-radius: 12px;
  padding: 60px 20px;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.drop-zone.dragover {
  border-color: var(--secondary-color);
  background-color: #f0f8ff;
}

.drop-zone-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.drop-zone-text {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.drop-zone-subtext {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.file-input-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.file-input-btn:hover {
  background: var(--primary-hover);
}

#fileInput {
  display: none;
}

.settings-panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-light);
}

.settings-panel h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.setting-item {
  text-align: left;
}

.setting-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.setting-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.setting-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.editor-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-light);
}

.editor-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3rem;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.editor-section {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.editor-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.char-count {
  background: #e9ecef;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
}

textarea {
  width: 100%;
  height: 400px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease;
  background: white;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--success-color);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-hover);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

.batch-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.stats-panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-light);
  display: none;
}

.stats-panel h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 20px;
  border-radius: 12px;
  color: white;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #c3e6cb;
}

.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-title-subtitle {
    font-size: 1rem;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .batch-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
