/* =========================================
   GLOBAL & SHARED STYLES
   ========================================= */
body { background: #F3F4F6; font-family: system-ui, sans-serif; }
.container-custom { max-width: 900px; margin: 0 auto; padding: 1rem; }

.dropzone {
  border: 3px dashed #8b5cf6;
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.dropzone.drag-over { background: #f3e8ff; border-color: #6d28d9; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  z-index: 1000;
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.3s;
}
.toast.error { background: #ef4444; }

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar { transition: width 0.3s ease; }

/* =========================================
   TOOL-SPECIFIC STYLES
   ========================================= */
.image-preview-item, .pdf-preview-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: white; border-radius: 1rem; padding: 0.6rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #e5e7eb;
  cursor: grab;
}
.image-preview-item:active, .pdf-preview-item:active { cursor: grabbing; }
.sortable-drag { opacity: 0.5; background: #f3e8ff; }

.images-scroll, .pdfs-scroll, .pages-scroll {
  max-height: 500px; overflow-y: auto; padding-right: 4px;
}
.images-scroll::-webkit-scrollbar, .pdfs-scroll::-webkit-scrollbar, .pages-scroll::-webkit-scrollbar { width: 6px; }
.images-scroll::-webkit-scrollbar-track, .pdfs-scroll::-webkit-scrollbar-track, .pages-scroll::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 10px; }
.images-scroll::-webkit-scrollbar-thumb, .pdfs-scroll::-webkit-scrollbar-thumb, .pages-scroll::-webkit-scrollbar-thumb { background: #d97706; border-radius: 10px; }

.page-thumb {
  background: white; border-radius: 0.75rem; padding: 0.5rem;
  border: 1px solid #e5e7eb; transition: all 0.2s;
}
.page-thumb:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -2px rgba(0,0,0,0.1); }

i.ph, i.ph-bold, i.ph-fill { display: inline-block; font-size: 1.2rem; line-height: 1; }
.header-icon { font-size: 2rem; }
.btn-icon { font-size: 1.1rem; }
.quality-preset.active { background: #4f46e5 !important; color: white !important; }







/* ========== FAQ ACCORDION STYLES ========== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #4F46E5;
}

.faq-item.active {
  border-color: #818cf8;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
  background: linear-gradient(to bottom, #eef2ff, #ffffff);
}

.faq-item.active .faq-question {
  background: #eef2ff;
}

.faq-question {
  cursor: pointer;
  outline: none;
}

.faq-question:focus {
  outline: 2px solid #818cf8;
  outline-offset: -2px;
}

  
