/* Reset padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Corpo da página */
body {
    display: flex;
    height: 100vh;
    background-color: #121212; /* Cor de fundo escura */
    color: #ffffff; /* Texto branco */
}

/* Cabeçalho fixo no topo */
header {
    background: #1f1f1f;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 1000;
}

/* Informações do cabeçalho */
.system-info {
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    gap: 20px;
}

.user-info p {
    margin: 0;
    font-size: 14px;
}

.date-time {
    font-size: 14px;
}

/* MENU LATERAL FIXO */
.sidebar {
    width: 250px;
    position: fixed;
    height: 100%;
    background: #1e1e1e;
    color: white;
    padding-top: 60px;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 5px solid transparent;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background: #333;
    border-left: 5px solid #16a085;
}

.sidebar ul li img {
    width: 20px;
    height: 20px;
}

/* CONTEÚDO PRINCIPAL */
.container {
    display: flex;
    width: 100%;
}

.content {
    margin-left: 250px;
    padding: 20px;
    flex-grow: 1;
    margin-top: 60px;
}

/* Seções do conteúdo */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Botões */
.btn-green {
    background: #16a085;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 3px;
}

.btn-green:hover {
    background: #1abc9c;
  
}

.btn-red {
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    
}

.btn-red:hover {
    background: #c0392b;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* Foco do modal */
.modal.show {
    display: block;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
    }

    .user-info {
        flex-direction: column;
        gap: 5px;
    }

    .date-time {
        text-align: center;
    }
}

/* Caixa de pacientes */
#listaPacientesContainer {
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Título da caixa */
#listaPacientesContainer h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
    color: #ecf0f1;
}

/* Tabela */
#listaPacientes {
    width: 95%;
    border-collapse: collapse;
    background: #34495e;
    color: #ecf0f1;
}

/* Cabeçalho da tabela */
#listaPacientes thead {
    background-color: #16a085;
    color: white;
}

/* Linhas da tabela */
#listaPacientes th, #listaPacientes td {
    padding: 12px;
    border: 1px solid #2c3e50;
    text-align: left;
}

/* Alternância de cor nas linhas */
#listaPacientes tbody tr:nth-child(even) {
    background-color: #2c3e50;
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    #listaPacientesContainer {
        width: 100%;
    }

    #listaPacientes {
        width: 100%;
    }
}

/* Botões de ação */
button {
    background-color: #16a085;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    float: right;
    
}

button:hover {
    background-color: #1abc9c;
}

/* Estilizando os botões de expansão */
.expand-content {
    display: none;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    background-color: #34495e;
    margin-bottom: 10px;
}

.expand-btn {
    padding: 12px;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 3px;
    margin-top: 5px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
}

/* Botão de Pacientes */
.ciano {
    background-color: #00bcd4;
}

.ciano:hover {
    background-color: #0097a7;
}

/* Botão de Equipe Médica */
.azul-verde {
    background-color: #009688;
}

.azul-verde:hover {
    background-color: #00796b;
}

/* Pop-up de Cadastro de Usuário */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #121212;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 400px;
    max-width: 100%;
}

.modal h2 {
    color: #fff;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input[type="text"],
.modal input[type="password"],
.modal input[type="email"] {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.modal input[type="text"]:focus,
.modal input[type="password"]:focus,
.modal input[type="email"]:focus {
    border: 1px solid #1abc9c;
    outline: none;
}

.modal button {
    background-color: #16a085;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal button:hover {
    background-color: #1abc9c;
}

.modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal .close-btn:hover {
    color: #e74c3c;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1049;
}

.modal.show,
.modal-overlay.show {
    display: block;
}




/* Container principal do pop-up */
.entrada-container {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Título */
.entrada-container h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    color: #f5f5f5;
}

/* Agrupamento dos inputs */
.entrada-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Cada item (label + input) */
.entrada-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Labels */
.entrada-item label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #ccc;
}

/* Inputs */
.entrada-item input {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

/* Inputs pequenos (temperatura e pressão) */
.entrada-pequeno {
    max-width: 80px;
    text-align: center;
}

/* Classificação de risco */
.entrada-risco {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.entrada-risco label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Estilização dos botões */
.entrada-botoes {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-green, .btn-red {
    border: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    width: 48%;
    transition: 0.3s;
}

.btn-green {
    background-color: #28a745;
    color: white;
}

.btn-green:hover {
    background-color: #218838;
}

.btn-red {
    background-color: #dc3545;
    color: white;
}

.btn-red:hover {
    background-color: #c82333;
}

/* Responsividade */
@media (max-width: 500px) {
    .entrada-container {
        width: 95%;
    }
    
    .entrada-inputs {
        flex-direction: column;
    }
    
    .entrada-pequeno {
        max-width: 100%;
    }
}







/* Estilização do Pop-up de Busca (Tema Escuro) */
#buscaRec {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px; /* Reduzi o tamanho */
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    padding: 20px;
    color: #fff;
}

/* Conteúdo do Pop-up */
#buscaRec .popup-conteudo {
    position: relative;
    display: flex;
    flex-direction: column;
}

#buscaRec h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

/* Campo de Pesquisa */
#buscaRecInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 16px;
    background: #2a2a2a;
    color: #fff;
}

/* Resultados */
#buscaRecResultados {
    max-height: 180px; /* Ajustado para não ficar grande */
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 5px;
    background: #2a2a2a;
}

.buscaRec-item {
    padding: 8px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.buscaRec-item:last-child {
    border-bottom: none;
}

.buscaRec-item:hover {
    background: #333;
}

/* Botão de Seleção */
.buscaRec-selecionar {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.buscaRec-selecionar:hover {
    background: #388E3C;
}

/* Botão de Fechar */
#buscaRec .fechar {
    position: absolute;
    top: -10px; /* Agora está na borda */
    right: -10px;
    width: 30px;
    height: 30px;
    background: red;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
}

#buscaRec .fechar:hover {
    background: darkred;
}

.input-bloqueado {
    background-color: rgba(0, 0, 0, 0.3); /* Cor mais escura para indicar bloqueio */
    pointer-events: none; /* Impede interação */
    color: #aaa; /* Deixa o texto mais apagado */
    border: 1px solid #555; /* Mantém a borda visível */
}

.linha-leve {
    background-color: green !important;
    color: white;
    font-weight: bold;
}

.linha-moderado {
    background-color: yellow !important;
    color: black;
    font-weight: bold;
}

.linha-grave {
    background-color: red !important;
    color: white;
    font-weight: bold;
}


#listaAtendimentoContainer {
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Título da caixa */
#listaAtendimentoContainer h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
    color: #ecf0f1;
}

/* Tabela */
#listaAtendimento {
    width: 95%;
    border-collapse: collapse;
    background: #34495e;
    color: #ecf0f1;
}

/* Cabeçalho da tabela */
#listaAtendimento thead {
    background-color: #16a085;
    color: white;
}

/* Linhas da tabela */
#listaAtendimento th, #listaAtendimento td {
    padding: 12px;
    border: 1px solid #2c3e50;
    text-align: left;
}

/* Alternância de cor nas linhas */
#listaAtendimento tbody tr:nth-child(even) {
    background-color: #2c3e50;
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    #listaAtendimentoContainer {
        width: 100%;
    }

    #listaAtendimento {
        width: 100%;
    }
}



/* Cor para paciente classificado como LEVE */
/* Cor para paciente classificado como LEVE (Verde puro) */
.leve {
    background-color: #008000 !important; /* Verde puro */
    color: #FFFFFF !important; /* Texto branco */
}

/* Cor para paciente classificado como MODERADO (Amarelo puro) */
.moderado {
    background-color: #FFFF00 !important; /* Amarelo puro */
    color: #000000 !important; /* Texto preto para contraste */
}

/* Cor para paciente classificado como GRAVE (Vermelho puro) */
.grave {
    background-color: #FF0000 !important; /* Vermelho puro */
    color: #FFFFFF !important; /* Texto branco */
}



/* Estilo do botão Atender (Azul) */
.btn-azul {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
}

/* Estilo do botão Excluir (Vermelho) */
.btn-vermelho {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
}







