body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F3F4F6;
  margin: 0;
  padding-top: 50px;
  min-height: 100vh;
  zoom: 0.75;
}

.tool-hero {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #6366f1 100%);
}

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

.frame-preview {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: white;
  transition: transform 0.2s;
  overflow: hidden;
}
.frame-preview:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 1000;
  font-weight: 500;
}
.toast.error { background: #ef4444; }

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

/* Unified Header Section */
.header-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .header-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tabs-container {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

/* 3D Tab Buttons */
.tab-btn {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4b5563;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: top 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
  position: relative;
  top: 0;
  text-decoration: none;
  box-shadow: 0 4px 0 #d1d5db, 0 6px 10px rgba(0,0,0,0.08);
}
.tab-btn:hover {
  background: #e5e7eb;
}
.tab-btn:active {
  top: 4px;
  box-shadow: 0 0px 0 #d1d5db, 0 2px 4px rgba(0,0,0,0.05);
}
.tab-btn.active {
  color: white;
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 4px 0 #5b21b6, 0 6px 10px rgba(124, 58, 237, 0.3);
}
.tab-btn.active:hover {
  background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%);
}
.tab-btn.active:active {
  top: 4px;
  box-shadow: 0 0px 0 #5b21b6, 0 2px 4px rgba(124, 58, 237, 0.2);
}

.calc-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
}

/* Video to GIF specific styles */
.video-dropzone {
  border: 3px dashed #6366f1;
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.video-dropzone.drag-over { background: #eef2ff; border-color: #4f46e5; }

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

.gif-preview {
  max-width: 100%;
  max-height: 12rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}



/* ========== 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;
}

