/* Convert page styles - matching crop.css beautiful design */

/* Beautiful Upload Area Styles */
#dropZone {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 50%, rgba(240, 147, 251, 0.03) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

#dropZone:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 50%, rgba(240, 147, 251, 0.05) 100%);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

#dropZone.drag {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.08) 100%);
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 140, 255, 0.5) !important;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Popular Conversions Section */
.popular-conversions {
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.popular-conversions .seo-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 50%, rgba(240, 147, 251, 0.03) 100%);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.08);
}

.popular-conversions .seo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.04) 0%, transparent 50%);
  opacity: 0.5;
}

.popular-conversions .seo-card > * {
  position: relative;
  z-index: 1;
}

.popular-heading {
  text-align: center;
  margin-bottom: 32px;
}

.popular-heading h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.popular-heading .divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 2px;
  margin: 0 auto;
}

.conversions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  animation: fadeIn 1s ease-out;
}

.conversion-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.conversion-link:hover {
  transform: translateY(-4px);
}

.conversion-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.conversion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.conversion-card:hover::before {
  opacity: 1;
}

.conversion-card:hover {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.conversion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  gap: 6px;
}

.format-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  min-width: 45px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.format-badge.from {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.format-badge.to {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  color: #6b7280;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.conversion-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.conversion-card p {
  color: var(--light-muted);
  font-size: 0.8rem;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* Supported Formats Section */
.supported-formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.format-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.format-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.format-card:hover::before {
  opacity: 1;
}

.format-card:hover {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}

.format-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.format-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.format-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.format-description {
  font-size: 16px;
  color: var(--light-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.format-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.feature-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.faq-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-card:hover::before {
  opacity: 1;
}

.faq-card:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1e293b;
  line-height: 1.4;
}

.faq-answer {
  font-size: 15px;
  color: var(--light-muted);
  margin: 0;
  line-height: 1.6;
}

/* Editor Layout */
.editor-layout {
  display: block !important;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.editor-canvas-section {
  width: 100%;
  margin-bottom: 20px;
}

#cropCanvas {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

.editor-canvas-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  order: 1;
}

.editor-controls-section {
  width: 320px;
  display: block !important;
  order: 2;
  height: fit-content;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.02) 100%);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Canvas Container */
#canvasContainer {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 600px;
  overflow: hidden;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

#cropCanvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  max-height: 600px;
  cursor: crosshair;
  border-radius: 14px;
  object-fit: contain;
  image-rendering: crisp-edges;
}

#imageDimensions {
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--light-text);
  font-weight: 500;
  text-align: center;
  display: inline-block;
}

.control-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  transition: all 0.2s ease;
}

.editor-controls-section .control-card:last-child {
  margin-bottom: 0;
}

.control-card:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.control-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--light-text);
  text-align: center;
}

/* Format Options Grid */
.format-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.format-option-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.format-option-card:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.format-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.format-option-card input[type="radio"]:checked + span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.format-option-card span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.format-option-card small {
  display: block;
  font-size: 10px;
  color: var(--light-muted);
  font-weight: 500;
}

/* Enhanced Form Controls */
.control-input-group {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.control-input-group .form-control {
  border-radius: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
}

.control-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--light-text);
}

.enhanced-input {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--light-text) !important;
}

.enhanced-input:focus {
  border-color: var(--primary-500) !important;
  box-shadow: 0 0 0 0.2rem rgba(91, 140, 255, 0.25) !important;
  background: rgba(255, 255, 255, 1) !important;
}

.control-card .form-range {
  margin-bottom: 6px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.convert-action-btn {
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3) !important;
  transition: all 0.3s ease !important;
}

.convert-action-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Success Modal */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.success-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-message {
  text-align: center;
  margin-bottom: 24px;
}

.success-message #success-heading {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 8px;
}

.success-message #successDimensions {
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

.success-image {
  margin-bottom: 24px;
  width: 100%;
  text-align: center;
}

.success-image img {
  max-width: 100%;
  max-height: 300px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.success-actions .btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.success-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.success-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.success-actions .btn-ghost {
  border: 2px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
}

.success-actions .btn-ghost:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes titleGlow {
  0%, 100% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(1);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(91, 140, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(91, 140, 255, 0.6), 0 0 40px rgba(91, 140, 255, 0.4);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus management */
.focus-visible:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Additional Animations */
.conversion-card {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.conversion-card:nth-child(1) { animation-delay: 0.1s; }
.conversion-card:nth-child(2) { animation-delay: 0.2s; }
.conversion-card:nth-child(3) { animation-delay: 0.3s; }
.conversion-card:nth-child(4) { animation-delay: 0.4s; }
.conversion-card:nth-child(5) { animation-delay: 0.5s; }
.conversion-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover animations for format options */
.format-option-card:hover {
  animation: pulse 0.3s ease-in-out;
}

.format-option-card input[type="radio"]:checked + span {
  animation: fadeIn 0.3s ease-in-out;
}

/* Button hover animations */
.convert-action-btn:hover {
  animation: pulse 0.2s ease-in-out;
}

/* Loading animation improvements */

/* Responsive Design */
@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .editor-controls-section {
    width: 280px;
  }

  .supported-formats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .conversions-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr 260px;
    gap: 18px;
  }

  .editor-controls-section {
    width: 260px;
  }
}

@media (max-width: 900px) {
  .editor-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .editor-controls-section {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }

  .control-card {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .editor-layout {
    gap: 16px;
  }

  .control-card {
    padding: 12px;
    min-width: 200px;
  }

  #dropZone {
    padding: 50px 20px;
    border-radius: 12px;
    max-width: 90vw;
  }

  #main {
    padding-top: 40px !important;
  }

  .conversions-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }

  .popular-heading h2 {
    font-size: 24px !important;
  }

  .popular-heading {
    margin-bottom: 24px;
  }

  .popular-conversions {
    margin-top: 24px;
  }

  .popular-conversions .seo-card {
    padding: 32px 24px;
  }

  .conversion-card {
    padding: 14px;
  }

  .conversion-card h3 {
    font-size: 1rem;
  }

  .conversion-card p {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .success-modal-content {
    padding: 24px;
    width: 95%;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
  }
}

/* Enhanced Feature Showcase */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 0 20px;
}

.feature-showcase-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-showcase-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-showcase-item:hover::before {
  opacity: 1;
}

.feature-showcase-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.feature-showcase-item:hover .feature-icon-large {
  transform: scale(1.1) rotate(5deg);
}

.feature-showcase-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--light-text);
}

.feature-showcase-item p {
  font-size: 16px;
  color: var(--light-muted);
  line-height: 1.6;
  margin: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 0 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.25);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.benefit-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light-text);
}

.benefit-content p {
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.5;
  margin: 0;
}

/* Enhanced Feature Showcase */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 0 20px;
}

.feature-showcase-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-showcase-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-showcase-item:hover::before {
  opacity: 1;
}

.feature-showcase-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.feature-showcase-item:hover .feature-icon-large {
  transform: scale(1.1) rotate(5deg);
}

.feature-showcase-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--light-text);
}

.feature-showcase-item p {
  font-size: 16px;
  color: var(--light-muted);
  line-height: 1.6;
  margin: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 0 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.25);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.benefit-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light-text);
}

.benefit-content p {
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.5;
  margin: 0;
}

/* Additional Mobile Responsive Styles */
@media (max-width: 768px) {
  .supported-formats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .format-card {
    padding: 20px;
  }

  .format-header {
    gap: 12px;
  }

  .format-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .format-header h3 {
    font-size: 20px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-card {
    padding: 20px;
  }

  .faq-question {
    font-size: 16px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #dropZone {
    border-width: 3px;
  }

  #dropZone:hover {
    border-color: var(--primary-300);
  }

  .form-control:focus {
    border-width: 2px;
  }
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, #5b8cff 0%, #10b981 50%, #f59e0b 100%);
  border-radius: 2px;
  opacity: 0.6;
}

.page-header::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #5b8cff 0%, #10b981 50%, #f59e0b 100%);
  border-radius: 2px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.page-subtitle::before {
  content: '⚡';
  margin-right: 8px;
  opacity: 0.8;
}

.page-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid rgba(91, 140, 255, 0.1);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.page-feature-icon {
  width: 14px;
  height: 14px;
  color: #5b8cff;
}

/* Editor Layout */
.editor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: none; /* Hidden by default, shown when image is uploaded */
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Preview Panel */
.preview-panel {
  background: var(--light-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.image-container {
  position: relative;
}

.image-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.image-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn.active {
  background: var(--primary-500);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: rgba(91, 140, 255, 0.1);
  color: var(--primary-500);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.image-display {
  position: relative;
  height: 400px;
  background: #f8fafc;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
  background: #f8fafc;
}

.image-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.converted-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #94a3b8;
  z-index: 1;
  opacity: 0.7;
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  color: #cbd5e1;
  stroke-width: 1;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.image-details {
  padding: 12px 0;
}

.image-info {
  font-size: 14px;
  color: var(--light-text);
  margin: 0;
  font-weight: 500;
  text-align: center;
  background: var(--light-card);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--light-border);
  display: inline-block;
}

/* Controls Panel */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-section {
  background: var(--light-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.control-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--light-text);
  margin: 0 0 16px 0;
}

/* Compact Format Options */
.format-options-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.format-option-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--light-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--light-card);
  font-size: 14px;
  font-weight: 500;
}

.format-option-compact:hover {
  border-color: var(--primary-500);
  background: rgba(91, 140, 255, 0.05);
}

.format-option-compact input[type="radio"] {
  accent-color: var(--primary-500);
  margin: 0;
}

.format-option-compact.selected {
  border-color: var(--primary-500);
  background: rgba(91, 140, 255, 0.1);
}

/* Quality Controls Compact */
.quality-controls-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-input-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.quality-value {
  color: var(--primary-500);
  font-weight: 600;
}

.quality-controls-compact input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

.quality-controls-compact input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-500);
  border-radius: 50%;
  cursor: pointer;
}

.quality-hints {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-buttons .btn {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.download-btn {
  margin-top: 16px;
}

.download-btn.hidden {
  display: none;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(135deg,
    rgba(91, 140, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.8) 25%,
    rgba(91, 140, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.9) 75%,
    rgba(91, 140, 255, 0.02) 100%);
  border-radius: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}


.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(91, 140, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #5b8cff 0%, #10b981 50%, #f59e0b 100%);
  border-radius: 2px;
  opacity: 0.8;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-cta {
  margin: 24px 0 20px;
  position: relative;
  z-index: 2;
}

.hero-btn {
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(91, 140, 255, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(91, 140, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.hero-feature-icon {
  width: 16px;
  height: 16px;
  color: #5b8cff;
}



/* Section titles */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--light-text);
  text-align: center;
  background: linear-gradient(135deg, var(--light-text), rgba(91, 140, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), rgba(91, 140, 255, 0.6));
  border-radius: 2px;
}

/* Preview and results sections */
.preview-section,
.results-section {
  margin-bottom: 32px;
  text-align: center;
}

.image-preview {
  margin-bottom: 16px;
  max-width: 100%;
  border: 2px solid var(--light-border);
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(15,23,42,0.02)),
    radial-gradient(circle at center, rgba(91, 140, 255, 0.03) 0%, transparent 70%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.image-preview:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.image-preview img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-preview:hover img {
  transform: scale(1.02);
}

.image-info {
  font-size: 14px;
  color: var(--light-muted);
  margin-bottom: 16px;
  font-weight: 500;
  background: rgba(15,23,42,0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--light-border);
  display: inline-block;
  backdrop-filter: blur(10px);
}

/* Format selection styles */
.format-section {
  margin-bottom: 32px;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.format-option {
  display: flex;
  align-items: flex-start;
  padding: 18px;
  border: 2px solid var(--light-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, var(--light-card), rgba(255, 255, 255, 0.6));
  position: relative;
  overflow: hidden;
}

.format-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.02), rgba(91, 140, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.format-option:hover {
  border-color: var(--primary-500);
  background: linear-gradient(145deg, rgba(91, 140, 255, 0.08), rgba(91, 140, 255, 0.12));
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(91, 140, 255, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

.format-option:hover::before {
  opacity: 1;
}

.format-option input[type="radio"] {
  margin-right: 14px;
  margin-top: 3px;
  accent-color: var(--primary-500);
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.format-option input[type="radio"]:checked {
  transform: scale(1.2);
}

.format-option.selected {
  border-color: var(--primary-500);
  background: linear-gradient(145deg, rgba(91, 140, 255, 0.1), rgba(91, 140, 255, 0.15));
  box-shadow:
    0 6px 20px rgba(91, 140, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.format-option.selected::before {
  opacity: 1;
}

.format-info {
  flex: 1;
}

.format-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--light-text);
  margin-bottom: 4px;
}

.format-description {
  font-size: 12px;
  color: var(--light-muted);
  line-height: 1.4;
}

/* Quality controls */
.quality-section {
  margin-bottom: 32px;
}

.quality-controls {
  max-width: 400px;
  margin: 0 auto;
}

.quality-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  font-size: 16px;
  color: var(--light-text);
}

.quality-controls input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.quality-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-500);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(91, 140, 255, 0.3);
  transition: all 0.2s ease;
}

.quality-controls input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(91, 140, 255, 0.4);
}

.quality-controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-500);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(91, 140, 255, 0.3);
}

.quality-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--light-muted);
  margin-top: 8px;
}

/* Action section */
.action-section {
  text-align: center;
  margin-bottom: 32px;
}

.action-section .btn + .btn {
  margin-left: 12px;
}

/* Button styles */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  min-width: 120px;
}

.btn-primary {
  background: var(--primary-500);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(91, 140, 255, 0.2);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(91, 140, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(91, 140, 255, 0.2);
}

.btn-primary:disabled {
  background: var(--light-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--light-card);
  color: var(--light-text);
  border: 1px solid var(--light-border);
}

.btn-secondary:hover {
  background: rgba(15,23,42,0.05);
  border-color: var(--primary-500);
}

.btn-success {
  background: #10b981;
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Results section */
.results-section {
  display: none;
}



/* Responsive adjustments */
@media (max-width: 768px) {


  .section-title {
    font-size: 18px;
  }

  .format-options {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
  }

  .format-option {
    padding: 14px;
  }

  .format-name {
    font-size: 15px;
  }

  .format-description {
    font-size: 11px;
  }

  .quality-controls {
    max-width: 100%;
  }

  .quality-label {
    font-size: 15px;
  }

  .action-section .btn + .btn {
    margin-left: 8px;
  }

  .btn {
    padding: 10px 20px;
    min-width: 100px;
    font-size: 13px;
  }

  .image-preview {
    max-width: 100%;
  }

  .image-details {
    padding: 8px 0;
  }

  .image-info {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* SEO/Content sections */
.seo-section {
  padding-top: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.seo-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 24px;
  text-align: center;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.format-item {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.format-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.format-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 8px;
  margin-top: 0;
}

.format-item p {
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.5;
  margin: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 8px;
  margin-top: 0;
}

.faq-answer {
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.5;
  margin: 0;
}


/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-header {
    margin-bottom: 20px;
    padding: 24px 16px;
  }

  .page-header::before {
    width: 150px;
    height: 3px;
  }

  .page-header::after {
    width: 60px;
    height: 60px;
    top: -15px;
    right: -15px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .page-title::after {
    width: 50px;
    height: 2px;
  }

  .page-subtitle {
    font-size: 0.85rem;
    padding: 0 10px;
  }

  .page-features {
    gap: 10px;
    margin-top: 14px;
  }

  .page-feature {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .page-feature-icon {
    width: 11px;
    height: 11px;
  }

  .editor-container {
    padding: 0 16px 16px;
    margin: 0 auto;
  }

  .hero-section {
    padding: 30px 16px 24px;
    margin-bottom: 24px;
  }


  .hero-title {
    font-size: 2.2rem;
  }

  .hero-title::after {
    width: 70px;
    height: 3px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-cta {
    margin: 20px 0 16px;
  }

  .hero-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .hero-btn-icon {
    width: 18px;
    height: 18px;
  }

  .hero-features {
    gap: 12px;
    margin-top: 20px;
  }

  .hero-feature {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .hero-feature-icon {
    width: 12px;
    height: 12px;
  }

  /* Editor layout mobile */
  .editor-layout {
    gap: 16px;
  }

  .image-display {
    height: 300px;
  }

  .control-section {
    padding: 16px;
  }

  .format-options-compact {
    gap: 6px;
  }

  .format-option-compact {
    padding: 8px 10px;
    font-size: 13px;
  }

  .action-buttons .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

  /* Content sections */
  .seo-section {
    padding-top: 40px;
  }

  .seo-heading {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .format-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .format-item,
  .faq-item {
    padding: 16px;
  }

  .format-item h3,
  .faq-question {
    font-size: 15px;
  }

  .format-item p,
  .faq-answer {
    font-size: 13px;
}
