@tailwind base;@tailwind components;@tailwind utilities;body{font-family:Inter,sans-serif}.print-page{width:210mm;height:296mm;padding:15mm;background:#fff;margin:0 auto;position:relative;overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;border:1px solid transparent;color:#000}.print-content-wrapper{flex:1;display:flex;flex-direction:column;height:100%}.print-header{margin-bottom:20px;padding-bottom:5px;flex-shrink:0}.print-title{text-align:center;font-weight:800;text-transform:uppercase;color:#000!important;margin:0 0 15px;line-height:1.2;border:2px solid rgba(0,0,0,.3);border-radius:16px;padding:12px 20px;background-color:transparent}.print-student-info{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:10pt;font-weight:600}.info-field{display:flex;align-items:baseline}.info-line{border-bottom:1px dotted #000;min-width:80px;margin-left:5px;flex:1}.print-questions-grid{display:grid;flex:1;gap:20px;align-content:start!important}.cols-1 .print-questions-grid{grid-template-columns:1fr}.cols-2 .print-questions-grid{grid-template-columns:1fr 1fr;column-gap:30px;position:relative}.cols-2 .print-questions-grid:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background-color:#ccc;transform:translate(-50%)}.print-question-item{break-inside:avoid;page-break-inside:avoid;position:relative;font-size:10pt;line-height:1.4;border:1px solid #cbd5e1;border-radius:8px;padding:12px;background-color:#fff}.print-q-header{display:flex;align-items:center;margin-bottom:5px;font-weight:700}.print-q-num{font-size:1.2em;margin-right:8px;color:#000}.print-meta{font-size:7pt;border:1px solid #999;padding:1px 4px;border-radius:3px;color:#555;margin-right:5px;text-transform:uppercase}.print-q-text{margin-bottom:8px;color:#000;text-align:justify}.print-image-container{display:flex;justify-content:center;align-items:center;width:100%;margin:5px 0 10px;overflow:hidden;height:auto;flex-grow:1}.print-q-image{display:block;max-width:100%;height:auto;object-fit:contain;max-height:250px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;image-rendering:high-quality}.print-options{display:grid;gap:4px}.print-options.single-col{grid-template-columns:1fr}.print-options.double-col{grid-template-columns:1fr 1fr}.print-opt{display:flex;align-items:baseline}.print-opt-label{font-weight:700;margin-right:5px;min-width:18px}.print-answer-key-page{display:flex;flex-direction:column;align-items:center;justify-content:center}.print-key-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;width:100%;font-size:11pt;font-family:monospace}.print-key-item{border-bottom:1px solid #eee;padding:2px 0}.print-footer-key{margin-top:auto;padding-top:15px;border-top:2px dashed #ccc;width:100%;page-break-inside:avoid}.print-footer-key-title{font-weight:700;font-size:10pt;margin-bottom:5px;text-align:center}.print-footer-key-items{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;font-size:9pt;font-family:monospace}.print-footer-key-item{white-space:nowrap}.print-watermark-container{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:50;overflow:hidden}.density-low .print-question-item{font-size:12pt}.density-medium .print-question-item{font-size:10pt;padding:8px}.density-medium .print-questions-grid{gap:10px}.density-medium .print-q-image{max-height:190px!important}.density-high .print-question-item{font-size:8pt;padding:6px}.density-high .print-questions-grid{gap:8px}.density-high .print-q-image{max-height:180px!important;width:auto;max-width:100%}.density-high .print-image-container{margin:2px 0}.density-ultra .print-question-item{font-size:7pt;padding:4px;border-width:1px;line-height:1.2}.density-ultra .print-questions-grid{gap:5px}.density-ultra .print-q-image,.density-ultra .print-q-svg svg{max-height:150px!important;width:auto;max-width:100%}.density-ultra .print-image-container{margin:1px 0}.density-ultra .print-q-text{margin-bottom:2px}.density-ultra .print-header{margin-bottom:10px;padding-bottom:5px}.density-ultra .print-title{font-size:14pt!important;margin-bottom:5px;padding:8px 15px}.density-ultra .print-student-info{font-size:7pt;gap:5px}.density-ultra .print-opt-label{min-width:12px;margin-right:2px}.density-ultra .print-q-num{font-size:1.1em;margin-right:4px}@media print{@page{size:A4;margin:0}body{background-color:#fff!important;color:#000!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;margin:0!important;padding:0!important;overflow:visible!important}header,footer,.sidebar,button,.fixed,.print\:hidden,.Toastify,#action-buttons,input[type=file],.display-settings-toolbar,.flashcard-reveal-button,.flashcard-hidden-options,.screen-view{display:none!important}#root,main,.container{width:100%!important;margin:0!important;padding:0!important;max-width:none!important;background:transparent!important;box-shadow:none!important;border:none!important;display:block!important}#printable-area{display:block!important;width:100%!important;height:auto!important;overflow:visible!important}.print-page{page-break-after:always;margin:0 auto;width:100%;height:100%;border:none}.print-page:last-child{page-break-after:auto}}@keyframes wave{0%,40%,to{transform:scaleY(.2)}20%{transform:scaleY(1)}}.animate-wave{transform-origin:bottom;animation:wave 1.2s ease-in-out infinite}.animate-fade-in{animation:fadeIn .3s ease-in-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
