* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  margin-top: 60px;
  overflow: hidden;
  flex: 1;
  padding: 0 20px;
}

.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: flex;
  align-items: center;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  cursor: pointer;
  gap: 8px;
}

.setting-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.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: #fff;
}

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, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  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 #fff;
  border-radius: 50%;
  border-top-color: #fff0;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Features Section - matching QR page design */
.features-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.feature-desc {
  color: var(--text-muted);
  line-height: 1.5;
}

/* How to Use Section - matching QR page design */
.how-to-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.step-desc {
  color: var(--text-muted);
  line-height: 1.5;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* FAQ Section - matching home page design */
.faq {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 0;
  font-family: inherit;
}

.faq-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.04);
  padding: 3rem 2rem;
  transition: all 0.2s ease-in-out;
}

.faq-container:hover {
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.08);
  transform: translateY(-3px);
}

.faq h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 600;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.faq-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 10px rgb(0 123 255 / 0.1);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .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);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 20px;
  }

  .step-item {
    padding: 20px;
  }

  .faq-container {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 20px;
  }
}
