body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; scroll-behavior: smooth; }

input, select, textarea { font-size: 16px !important; }

@keyframes slideUpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }

.animate-slide-up { animation: slideUpFade 0.4s ease-out forwards; }
.animate-pop-in { animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.wizard-step { display: none; opacity: 0; }
.wizard-step.active { display: block; animation: slideUpFade 0.3s ease-out forwards; }

@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.recording-pulse {
    animation: pulse-ring 1.5s infinite;
    background-color: #fee2e2 !important; color: #ef4444 !important; border-color: #fca5a5 !important;
}

.modal-overlay { transition: opacity 0.3s ease; opacity: 0; pointer-events: none; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); transform: scale(0.95) translateY(10px); opacity: 0; }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); opacity: 1; }

.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark .glass { background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(255, 255, 255, 0.05); }

@media print {
    body { background: white; }
    body > *:not(#print-area) { display: none !important; }
    #print-area { display: block !important; position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: 2cm; color: #000; font-family: 'Times New Roman', serif; }
    
    .print-header { border-bottom: 2px solid #1e3a8a; padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
    .print-title { font-size: 28px; font-weight: bold; color: #1e3a8a; letter-spacing: 2px; text-transform: uppercase; }
    .print-clinic-info { text-align: right; font-size: 12px; color: #333; line-height: 1.4; }
    
    .print-patient-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f8fafc; padding: 15px; border-radius: 4px; margin-bottom: 25px; font-size: 13px; border: 1px solid #cbd5e1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-content { font-size: 14px; line-height: 1.6; color: #000; min-height: 300px; }
    
    .print-footer { margin-top: 50px; padding-top: 20px; border-top: 1px solid #cbd5e1; display: flex; justify-content: space-between; font-size: 12px; align-items: flex-end; page-break-inside: avoid; }
    .signature-line { width: 200px; border-bottom: 1px solid #000; margin-bottom: 5px; margin-top: 30px; }
    
    .inv-table { width: 100%; text-align: left; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
    .inv-table th { background: #f1f5f9; padding: 10px; border-bottom: 2px solid #94a3b8; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .inv-table td { padding: 10px; border-bottom: 1px solid #e2e8f0; }
    .inv-totals { width: 300px; margin-left: auto; font-size: 14px; margin-top: 20px; }
    .inv-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
    .inv-totals .total { font-weight: bold; font-size: 16px; border-top: 2px solid #000; padding-top: 10px; margin-top: 5px; }
    
    .rx-symbol { font-family: serif; font-size: 40px; font-weight: bold; display: flex; align-items: flex-start; float: left; margin-right: 20px; margin-top: -10px; }
    .rx-symbol .slash { width: 3px; background: #000; height: 40px; margin-left: -15px; margin-top: 10px; transform: rotate(15deg); }
}