:root {
    --medical-teal: #0D9488;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(13, 148, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.1) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
}

/* SKENER PŘES TEXT HEAL */
.heal-scanner {
    position: relative;
    display: inline-block;
}

.heal-scanner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #10b981;
    box-shadow: 0 0 12px 2px #10b981;
    animation: medicalScanLine 3s linear infinite;
    pointer-events: none;
}

@keyframes medicalScanLine {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* EKG ANIMACE V TLAČÍTKU */
.ecg-line {
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: ecgDash 1.5s linear infinite;
}

@keyframes ecgDash {
    0% {
        stroke-dashoffset: 40;
    }

    100% {
        stroke-dashoffset: -40;
    }
}

/* POMOCNÉ TŘÍDY PRO JS PŘECHODY */
.btn-hidden {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    pointer-events: none;
}

.btn-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Plynulé střídání textů v diagnostice */
#loading-text {
    transition: opacity 0.3s ease-in-out;
}

/* Medical Graph Paper Background */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(13, 148, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.1) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    background-position: center top;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* ECG / Pulse Effect */
.pulse-indicator {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
    animation: pulse-green 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-green {
    to {
        box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
    }
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Nativní tisk PDF Reportu */
@media screen {
    #pdf-report-container {
        display: none;
    }
}

@media print {
    body> :not(#pdf-report-container) {
        display: none !important;
    }

    #pdf-report-container {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0;
        padding: 0;
        z-index: 1 !important;
    }

    @page {
        margin: 1cm;
        size: a4 portrait;
    }

    html,
    body {
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        background-color: white !important;
        background-image: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}