@import url('https://fonts.googleapis.com/css2?family=Codystar&family=Dancing+Script:wght@400;700&family=Raleway+Dots&family=Raleway:wght@400;700&family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: #fdfbf7; /* Warm paper white */
  color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Custom Handwriting Fonts Classes */
.font-dots { font-family: 'Raleway Dots', cursive; }
.font-codystar { font-family: 'Codystar', cursive; }
.font-cursive { font-family: 'Dancing Script', cursive; }

/* Print Specifics - CRITICAL for PDF export */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  
  body {
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide UI during print */
  #controls, #navbar, #ai-panel, .no-print {
    display: none !important;
  }

  #app-container {
    padding: 0;
    margin: 0;
    height: auto;
    display: block;
  }

  #preview-container {
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: white;
    transform: none !important;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  #sheet-paper {
    width: 210mm;
    height: 296mm; /* slight adjustment to prevent overflow page */
    margin: 0 auto;
    box-shadow: none;
    border: none;
    page-break-after: always;
  }
}

/* Screen Preview Scaling */
#sheet-paper {
  width: 210mm;
  height: 297mm;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}