@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Dancing+Script:wght@400;700&family=Indie+Flower&family=Kalam:wght@300;400;700&family=Patrick+Hand&family=Shadows+Into+Light&display=swap');

/* CSS Variables */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --light: #f9fafb;
    --dark: #111827;
    --paper: #fffdf8;
    --ink-blue: #1e40af;
    --ink-black: #171717;
    --ink-purple: #6b21a8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: white;
    color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo i {
    font-size: 24px;
    color: #e2b88f;
}

.logo h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.logo h2 a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(226, 184, 143, 0.2);
}

.nav-link.active {
    background-color: #e2b88f;
    color: #333;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
  
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-flex;
    text-align: center;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.badge svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--dark);
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--gray-600);
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

/* Container */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Upload Section */
.upload-section {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 2px solid #dee2e6;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 600px;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    background: #e8ebff;
    border-color: #764ba2;
}

.upload-icon {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-subtext {
    color: #666;
    font-size: 0.875rem;
}

input[type="file"] {
    display: none;
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 600px;
}

/* Controls Panel */
.controls-panel {
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    max-height: 800px;
}

.controls-panel h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.control-group select,
.control-group input[type="number"],
.control-group input[type="range"] {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.3s;
    background: white;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: #667eea;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.color-option:hover {
    transform: scale(1.05);
}

.color-option.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #667eea;
}

.paper-lined {
    background: repeating-linear-gradient(white, white 30px, #e0e0e0 30px, #e0e0e0 31px);
}

.paper-white {
    background: white;
}

.paper-cream {
    background: #fef9e7;
}

.paper-blue {
    background: #e8f4f8;
}

.range-value {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: 600;
    color: #667eea;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Preview Section */
.preview-section {
    padding: 2rem;
    background: #ffffff;
    overflow-y: auto;
    max-height: 800px;
}

.preview-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.preview-container {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    position: relative;
    min-height: 400px;
}

.preview-placeholder {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #999;
}

.preview-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.preview-placeholder-text {
    font-size: 1.125rem;
    color: #666;
}

.preview-page {
    padding: 3rem;
    min-height: 1122px;
    position: relative;
    margin-bottom: 1.25rem;
    page-break-after: always;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.preview-page:last-child {
    margin-bottom: 0;
}

.page-number {
    position: absolute;
    bottom: 1.25rem;
    right: 3rem;
    color: #999;
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
}

.handwriting-text {
    line-height: 2;
    word-wrap: break-word;
    white-space: pre-wrap;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
}

/* Font Classes */
.font-caveat { font-family: 'Caveat', cursive; }
.font-dancing { font-family: 'Dancing Script', cursive; }
.font-indie { font-family: 'Indie Flower', cursive; }
.font-kalam { font-family: 'Kalam', cursive; }
.font-patrick { font-family: 'Patrick Hand', cursive; }
.font-shadows { font-family: 'Shadows Into Light', cursive; }

/* Loading */
.loading {
    text-align: center;
    padding: 2.5rem;
    font-size: 1.125rem;
    color: #667eea;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 1.25rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    font-size: 0.875rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Info Section */
.info-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    color: #333;
    line-height: 1.7;
}

.info-section h2 {
    font-size: 1.875rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-section h3 {
    font-size: 1.375rem;
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #1e40af;
}

.info-section h4 {
    font-size: 1.125rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-section p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

.info-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.info-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.view-more-faqs {
    display: inline-block;
    margin-top: 1rem;
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-more-faqs:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #aaa;
    padding: 2.5rem 0;
    margin-top: 3rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #444;
}

.footer-column p {
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #e2b88f;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.quick-links a:hover {
    color: white;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.contact-info i {
    color: #e2b88f;
    font-size: 1rem;
    margin-top: 2px;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 250px 1fr;
    }
    
    .controls-panel {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 0.4rem 0.6rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .controls-panel {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        max-height: none;
    }
    
    .preview-section {
        max-height: none;
    }
    
    .info-section {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .preview-page {
        padding: 1.5rem;
    }
    
    .info-section h2 {
        font-size: 1.5rem;
    }
    
    .info-section h3 {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .controls-panel,
    .upload-section,
    .site-footer,
    .btn {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .preview-section {
        padding: 0;
        max-height: none;
    }
    
    .preview-page {
        page-break-after: always;
        box-shadow: none;
    }
}
.center-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}