/* No início do telemedicina.css, tratamentos.css, etc. */
@import url("main-responsive.js");


:root {
            --neon-red: #ff0000;
            --neon-green: #00ff6a;
            --dark-bg: #010101;
            --panel-bg: rgba(20, 0, 0, 0.8);
            --scan-color: rgba(0, 255, 204, 0.5);
        }

        body {
            background-color: var(--dark-bg);
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            margin: 0;
            overflow-x: hidden;
            background-image: radial-gradient(circle at 2px 2px, rgba(255, 0, 0, 0.15) 1px, transparent 0);
            background-size: 40px 40px;
        }

        /* CONFIGURAÇÃO DE IMPRESSÃO */
        @media print {
            body { background: white !important; color: black !important; background-image: none !important; }
            .telemed-ai-container { 
                position: absolute !important; width: 100% !important; height: auto !important; 
                border: 2px solid black !important; background: white !important; color: black !important;
                top: 0; left: 0;
            }
            .ai-header, .ai-footer, button, .btn-voltar-principal, .grid-profissionais, .ai-toggle-icon, #acoesDiagnostico { 
                display: none !important; 
            }
            .ai-body { color: black !important; font-size: 14pt !important; }
            .ai-body div { color: black !important; border-left: 2px solid black !important; }
            .main-container h1 { color: black !important; text-shadow: none !important; }
        }

        .main-container {
            padding: 60px 20px;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .glitch {
            font-size: 3.5rem;
            text-transform: uppercase;
            text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 106, 0.75);
            animation: glitch 500ms infinite;
        }

        @keyframes glitch {
            0% { transform: translate(0); }
            20% { transform: translate(-2px, 2px); }
            40% { transform: translate(-2px, -2px); }
            60% { transform: translate(2px, 2px); }
            80% { transform: translate(2px, -2px); }
            100% { transform: translate(0); }
        }

        .grid-profissionais {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 40px;
            margin-top: 50px;
            margin-bottom: 120px;
        }

        .card-medico {
            background: var(--panel-bg);
            border: 1px solid var(--neon-red);
            padding: 40px 25px;
            position: relative;
            backdrop-filter: blur(15px);
            clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
            min-height: 450px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            opacity: 0;
            transform: translateY(30px);
            animation: cardAppear 0.6s ease forwards;
        }

        @keyframes cardAppear {
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- EFEITOS DE SCANNER E HUD --- */
        .hud-ring {
            width: 150px; height: 150px;
            margin: 0 auto 20px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            border: 2px solid var(--neon-red);
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
            position: relative; /* Necessário para o scanner */
            overflow: hidden; /* Garante que o laser fique dentro do círculo */
        }

        /* Efeito de Scanner Laser Vertical */
        .hud-ring::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #00ffcc;
            box-shadow: 0 0 15px #00ffcc;
            z-index: 5;
            animation: scanMove 3s linear infinite;
        }

        /* Efeito de Overlay de Monitor Antigo */
        .hud-ring::before {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0px, transparent 2px);
            pointer-events: none;
            z-index: 4;
        }

        .hud-ring img { 
            width: 130px; height: 130px; 
            border-radius: 50%; 
            object-fit: cover; 
            animation: pulseImg 4s ease-in-out infinite;
        }

        @keyframes scanMove {
            0% { top: 0%; opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { top: 100%; opacity: 0; }
        }

        @keyframes pulseImg {
            0%, 100% { transform: scale(1); filter: brightness(1) contrast(1); }
            50% { transform: scale(1.05); filter: brightness(1.2) contrast(1.1); }
        }

        /* --- FIM DOS EFEITOS DE SCANNER --- */

        .ecg-container {
            width: 100%; height: 50px;
            background: rgba(255, 0, 0, 0.05);
            margin: 15px 0;
            overflow: hidden;
            position: relative;
        }
        .ecg-svg {
            position: absolute;
            width: 200%; height: 100%;
            stroke: var(--neon-red);
            stroke-width: 2; fill: none;
            animation: move-ecg 2s linear infinite;
        }
        @keyframes move-ecg {
            from { transform: translateX(0); }
            to { transform: translateX(-50%); }
        }

        .btn-connect {
            background: transparent;
            color: var(--neon-red);
            border: 1px solid var(--neon-red);
            padding: 15px;
            font-family: 'Orbitron';
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            clip-path: polygon(0% 0%, 90% 0%, 100% 30%, 100% 100%, 10% 100%, 0% 70%);
        }

        .btn-connect.online {
            background: var(--neon-green) !important;
            color: #000 !important;
            border: 1px solid #fff !important;
            box-shadow: 0 0 25px var(--neon-green) !important;
        }

        .telemed-ai-container {
            position: fixed;
            bottom: 20px; right: 20px;
            width: 350px; height: 420px;
            background: rgba(10, 0, 0, 0.95);
            border: 2px solid var(--neon-red);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            transition: height 0.3s;
        }
        .telemed-ai-container.minimized { height: 45px; overflow: hidden; }
        .ai-header { background: var(--neon-red); color: #000; padding: 10px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; }
        .ai-body { flex-grow: 1; padding: 15px; overflow-y: auto; font-family: 'Share Tech Mono'; font-size: 13px; }
        .ai-footer { display: flex; padding: 10px; background: #1a0000; border-top: 1px solid #300; }
        .ai-footer input { flex: 1; background: transparent; border: none; color: var(--neon-red); outline: none; }
        .ai-footer button { background: var(--neon-red); border: none; padding: 5px 15px; cursor: pointer; font-family: 'Orbitron'; 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;
            box-shadow: 0 0 30px var(--neon-red), 0 0 50px rgba(255, 0, 0, 0.6);
            transform: translateY(-3px);
        }

        @keyframes screen-glitch {
            0% { transform: translate(0); }
            20% { transform: translate(-5px, 5px); filter: hue-rotate(90deg); }
            40% { transform: translate(-5px, -5px); }
            60% { transform: translate(5px, 5px); filter: sepia(1); }
            80% { transform: translate(5px, -5px); }
            100% { transform: translate(0); }
        }

        .alerta-critico-anim {
            animation: screen-glitch 0.3s linear 3;
            border: 2px solid #ff0000 !important;
            box-shadow: 0 0 30px rgba(255, 0, 0, 0.8) !important;
        }

        .btn-ai {
            background: transparent;
            border: 1px solid #00f2ff;
            color: #00f2ff;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 0.7rem;
            font-weight: bold;
            transition: 0.3s;
            margin-top: 10px;
            width: 100%;
            font-family: 'Orbitron';
        }

        .btn-ai:hover { background: #00f2ff; color: #000; box-shadow: 0 0 10px #00f2ff; }
        .btn-wpp { border-color: #25d366; color: #25d366; }
        .btn-wpp:hover { background: #25d366; border-color: #25d366; color: #fff; }


        /* Ajuste para celulares */
@media (max-width: 768px) {
    .grid-profissionais {
        display: flex;
        flex-direction: column; /* Faz os cards ficarem um embaixo do outro */
        align-items: center;
    }

    .card-medico {
        width: 90%; /* Ajusta a largura do card para quase toda a tela */
        margin-bottom: 20px;
    }
    
    .main-container {
        padding: 10px; /* Evita que o conteúdo cole nas bordas */
    }
}