
        :root {
            --neon-red: #ff0000;
            --dark-bg: #050505;
            --card-bg: #0d0d0d;
            --nav-red: #8b0000;
        }

        body {
            background-color: var(--dark-bg);
            color: white;
            font-family: 'Segoe UI', sans-serif;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* NAVBAR */
        .navbar {
            width: 100%;
            background-color: var(--nav-red);
            padding: 12px 0;
            display: flex;
            justify-content: center;
            gap: 25px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.8);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar a {
            color: white;
            text-decoration: none;
            font-size: 14px;
            font-weight: bold;
            text-transform: uppercase;
            transition: 0.3s;
            opacity: 0.8;
        }

        /* PAINEL DE CHAMADA */
        .main-container {
            max-width: 1000px;
            width: 90%;
            margin-top: 40px;
            text-align: center;
        }

        .heart-monitor {
            background: #000;
            border: 2px solid #1a1a1a;
            border-radius: 20px;
            padding: 40px;
            position: relative;
            box-shadow: 0 0 40px rgba(255, 0, 0, 0.2);
            margin-bottom: 30px;
            overflow: hidden;
        }

        #heartCanvas {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            opacity: 0.2;
            pointer-events: none;
        }

        .nome-atual { 
            font-size: clamp(32px, 5vw, 60px); 
            font-weight: 900; 
            margin: 20px 0; 
            text-transform: uppercase;
            position: relative;
            z-index: 2;
        }

        .blink { animation: blinker 0.6s linear 3; }
        @keyframes blinker { 50% { color: var(--neon-red); text-shadow: 0 0 25px var(--neon-red); } }

        /* CONTROLES */
        .controls { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
        
        .btn {
            border: none; padding: 18px 40px; border-radius: 10px;
            cursor: pointer; font-weight: bold; text-transform: uppercase; transition: 0.3s;
        }
        .btn-proximo { background: var(--neon-red); color: white; box-shadow: 0 5px 20px rgba(255,0,0,0.4); }
        .btn-anterior { background: #1a1a1a; color: #666; border: 1px solid #333; }
        .btn:hover { transform: scale(1.05); }

        /* LISTA COM HORÁRIO */
        .lista-espera {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 25px;
            border-top: 1px solid #111;
            padding-top: 20px;
            position: relative;
            z-index: 2;
        }

        .item-espera {
            display: flex;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.03);
            padding: 10px 20px;
            border-radius: 5px;
            font-size: 14px;
            color: #777;
        }

        .horario-tag {
            color: var(--neon-red);
            font-family: 'Courier New', monospace;
            font-weight: bold;
        }

       .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);
}

/* Ajuste no botão de reset para não competir visualmente */
button[onclick="resetarSistema()"] {
    display: block;
    width: 100%;
    opacity: 0.3;
    margin-top: 20px;
}

button[onclick="resetarSistema()"]:hover {
    opacity: 1;
    color: var(--neon-red) !important;
}