


        :root {
            --neon-red: #ff0000;
            --dark-bg: #050505;
            --card-bg: #0d0d0d;
            --grid-color: rgba(255, 0, 0, 0.05);
        }

        body {
            background-color: var(--dark-bg);
            background-image: 
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 20px 20px;
            color: white;
            font-family: 'Segoe UI', Tahoma, sans-serif;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        .header-monitor {
            width: 100%;
            padding: 30px 0;
            background: rgba(0, 0, 0, 0.8);
            border-bottom: 2px solid var(--neon-red);
            text-align: center;
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
            z-index: 10;
        }

        .titulo-glow {
            font-size: 2.5rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 5px;
            color: #fff;
            text-shadow: 0 0 10px #fff, 0 0 20px var(--neon-red);
            margin: 0;
        }

        .container {
            max-width: 1000px;
            width: 90%;
            margin: 40px auto;
        }

        .ecg-screen {
            background: #000;
            border: 2px solid #222;
            border-radius: 10px;
            height: 250px;
            position: relative;
            overflow: hidden;
            margin-bottom: 30px;
            box-shadow: inset 0 0 50px rgba(255, 0, 0, 0.1);
        }

        #ecgCanvas {
            display: block;
            width: 100%;
            height: 100%;
            background: transparent; 
        }

        /* --- NOVOS EFEITOS DE PULSO NOS CARDS --- */
        .sync-pulse {
            transition: all 0.1s ease-out;
            display: inline-block;
        }

        .heart-beat-active {
            transform: scale(1.1);
            filter: brightness(2);
            text-shadow: 0 0 15px currentColor, 0 0 30px currentColor !important;
        }

        .bpm-value {
            font-family: 'Courier New', Courier, monospace;
            color: var(--neon-red);
            text-shadow: 0 0 10px var(--neon-red);
            display: inline-block;
        }

        /* ---------------------------------------- */

        .grid-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .card-tech {
            background: var(--card-bg);
            border-left: 4px solid var(--neon-red);
            padding: 25px;
            border-radius: 0 10px 10px 0;
            transition: 0.3s;
        }

        .card-tech h3 {
            color: var(--neon-red);
            text-transform: uppercase;
            font-size: 14px;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }

        .data-value {
            font-family: 'Courier New', monospace;
            font-size: 24px;
            color: #fff;
            font-weight: bold;
        }

        .status-box {
            font-family: 'Courier New', Courier, monospace;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 3px;
        }
        
        .status-green { color: #00ff88; background: rgba(0, 255, 136, 0.1); text-shadow: 0 0 5px #00ff88; }
        .status-red { color: var(--neon-red); background: rgba(255, 0, 0, 0.1); text-shadow: 0 0 5px var(--neon-red); }

        .btn-group {
            text-align: center;
            margin-top: 50px;
        }

        .btn-main {
            background: var(--neon-red);
            color: #fff;
            padding: 18px 45px;
            border: none;
            border-radius: 5px;
            font-weight: 800;
            text-transform: uppercase;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
            transition: 0.3s;
            display: inline-block;
        }

                .btn-voltar-principal {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid var(--neon-red);
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.btn-voltar-principal:hover {
    background-color: var(--neon-red);
    color: #000; /* Texto fica preto no fundo vermelho para contraste */
    box-shadow: 0 0 30px var(--neon-red), 0 0 50px rgba(255, 0, 0, 0.6);
    transform: translateY(-3px);
}







