/* ========== BASE STYLES ========== */
:root {
  --indigo-600: #4F46E5;
  --blue-500: #3B82F6;
  --primary-yellow: #FBBF24;
  --text-indigo-100: #E0E7FF;
  --text-gray-600: #4B5563;
  --text-gray-900: #111827;
  --bg-gray-100: #F3F4F6;
  --primary-indigo: #4f46e5;
  --light-indigo: #eef2ff;
  --deep-indigo: #3730a3;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding-top: 80px;
  background-color: var(--bg-gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



a { text-decoration: none; display: inline-block; }

/* ========== DROPZONE & CARDS ========== */
.dropzone, .drop {
  border: 3px dashed #8b5cf6;
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.dropzone.drag-over, .drop.drag-over {
  background: #f3e8ff;
  border-color: #6d28d9;
}
.drop:hover {
  border-color: var(--deep-indigo);
  background: var(--light-indigo);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.drop.drag-over { transform: scale(1.01); }

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

/* ========== CANVAS & PREVIEWS ========== */
canvas {
  max-width: 100%;
  max-height: 320px;
}
.preview-box {
  max-height: 320px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.preview-container {
  max-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafb;
  border-radius: 12px;
  overflow: auto;
}

/* ========== TOAST & MODALS ========== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  font-weight: 500;
  transition: opacity 0.3s;
}
.toast.error { background: #ef4444; }

.format-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.format-modal-content {
  background: white;
  padding: 28px;
  border-radius: 20px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.format-modal a {
  color: #4F46E5;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* ========== ANIMATIONS & SPINNERS ========== */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.animate-pulse-slow { animation: pulse 1.5s ease-in-out infinite; }

.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;
}

/* ========== WATERMARK SPECIFIC ========== */
.mini-drop {
  border: 2px dashed #cbd5e1;
  padding: 15px;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.mini-drop:hover {
  border-color: var(--primary-indigo);
  background: #f1f5f9;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary-indigo);
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #d1d5db;
  border-radius: 2px;
}

.tab-btn {
  padding: 10px 20px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  transition: 0.2s;
  cursor: pointer;
}
.tab-btn.active {
  color: var(--primary-indigo);
  border-bottom-color: var(--primary-indigo);
}

.font-inter { font-family: 'Inter', sans-serif; font-weight: 700; }
.font-roboto { font-family: 'Roboto', sans-serif; font-weight: 700; }
.font-montserrat { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.font-poppins { font-family: 'Poppins', sans-serif; font-weight: 700; }
.font-oswald { font-family: 'Oswald', sans-serif; font-weight: 700; }
.font-merriweather { font-family: 'Merriweather', serif; font-weight: 700; }
.font-playfair { font-family: 'Playfair Display', serif; font-weight: 700; }
.font-cinzel { font-family: 'Cinzel', serif; font-weight: 700; }
.font-lora { font-family: 'Lora', serif; font-weight: 400; }
.font-lobster { font-family: 'Lobster', cursive; font-weight: 400; }
.font-permanent { font-family: 'Permanent Marker', cursive; font-weight: 400; }
.font-tiro { font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; }
.font-hind { font-family: 'Hind', sans-serif; font-weight: 400; }
.font-kalam { font-family: 'Kalam', cursive; font-weight: 700; }

img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
button { cursor: pointer; transition: background-color 0.2s, transform 0.1s; }
button:active { transform: scale(0.98); }

/* ========== FORMAT CONVERTER SPECIFIC ========== */
.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}



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

