/* Custom print styles to ensure health records export cleanly to PDF */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .print\:hidden {
        display: none !important;
    }

    .bg-white,
    .dark\:bg-gray-800 {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }

    .shadow-sm {
        box-shadow: none !important;
    }

    .border-gray-700 {
        border-color: #e5e7eb !important;
    }

    canvas {
        max-width: 100% !important;
    }

    /* Ensure no page breaks inside components */
    section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Custom scrollbar for lists */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Modal animation */
.modal-enter {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}