/* Estilos personalizados para o sistema de triagem */

/* Cores das classificações */
.color-red {
    background-color: #ff4444;
    color: white;
}

.color-orange {
    background-color: #ff8800;
    color: white;
}

.color-yellow {
    background-color: #ffbb33;
    color: black;
}

.color-green {
    background-color: #00C851;
    color: white;
}

.color-blue {
    background-color: #33b5e5;
    color: white;
}

/* Estilos para botões de discriminador */
.discriminator-button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    text-align: left;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.discriminator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para histórico */
.history-item {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para telas fixas */
.fixed-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 40;
    overflow-y: auto;
}

/* Estilos para botões de protocolo */
.protocol-button {
    padding: 1.5rem;
    background: #fff !important;
    border: 2px solid #e2e8f0;
    border-radius: 1.2rem;
    text-align: left;
    font-size: 1.15rem;
    font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    position: relative;
}

.protocol-button:hover {
    border-color: #2563eb;
    background: linear-gradient(90deg, #dbeafe 0%, #a5b4fc 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.10);
}

.protocol-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para telas de classificação final */
.final-classification {
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Estilos para campos de busca */
.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Estilos para telas de login */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para botões principais */
.main-button {
    width: 100%;
    padding: 1.5rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.main-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para telas de classificação */
.classification-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para cabeçalho */
.header {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Estilos para histórico */
.history-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

/* Estilos para telas de protocolo */
.protocol-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de discriminador */
.discriminator-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de classificação final */
.final-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de login */
.login-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de protocolo */
.protocol-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de discriminador */
.discriminator-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de classificação final */
.final-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos para telas de login */
.login-screen {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Cartão colorido para discriminadores */
.discriminator-card {
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
    font-weight: 600;
    transition: transform 0.1s;
}

.discriminator-card:active {
    transform: scale(0.98);
}

/* Ícones grandes e coloridos */
.discriminator-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin-right: 0.5rem;
}

/* Fundo da tela de conteúdo */
.pediatric-bg {
    background: none !important;
}

/* Título de seção moderno */
.pediatric-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Nome da cor com destaque */
.color-label {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bloco de cor do protocolo */
.protocol-color-block {
    border-radius: 1.2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 0 0 1.5rem 0;
    background: #fff;
}

.protocol-color-header {
    border-radius: 1.2rem 1.2rem 0 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #222;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.protocol-badge {
    display: inline-block;
    padding: 0.3rem 1.1rem;
    border-radius: 1rem;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.protocol-badge.color-vermelho {
    background: #ff4444;
}

.protocol-badge.color-laranja {
    background: #ff8800;
}

.protocol-badge.color-amarelo {
    background: #ffbb33;
    color: #333;
}

.protocol-badge.color-verde {
    background: #00C851;
}

.protocol-badge.color-azul {
    background: #33b5e5;
}

/* Botão de discriminador mais bonito */
.discriminator-btn {
    width: 100%;
    margin: 0.5rem 0;
    padding: 1.3rem 1.2rem;
    border-radius: 1.2rem;
    font-size: 1.15rem;
    font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    border: none;
    cursor: pointer;
    transition: transform 0.08s, box-shadow 0.08s;
    background: #fff !important;
    background-color: #fff !important;
    z-index: 2;
}

.discriminator-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}

.discriminator-btn .discriminator-icon {
    width: 2.2rem;
    height: 2.2rem;
    background: none;
    margin-right: 0.2rem;
}

/* Cores dos botões */
.discriminator-btn.color-vermelho {
    border-left: 8px solid #ff4444;
}

.discriminator-btn.color-laranja {
    border-left: 8px solid #ff8800;
}

.discriminator-btn.color-amarelo {
    border-left: 8px solid #ffbb33;
}

.discriminator-btn.color-verde {
    border-left: 8px solid #00C851;
}

.discriminator-btn.color-azul {
    border-left: 8px solid #33b5e5;
}

/* Tela final colorida e infantil */
/* .final-bg {
    background: none !important;
} */
.final-card {
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    max-width: 98vw;
    width: 100%;
    margin: 0.7rem auto;
    background: rgba(255, 255, 255, 0.7) !important;
    border-top: 8px solid #2563eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 700px) {
    .final-card {
        max-width: 540px;
        padding: 2.2rem 2rem 2rem 2rem;
    }
}

.final-card.color-vermelho {
    border-top-color: #ff4444;
}

.final-card.color-laranja {
    border-top-color: #ff8800;
}

.final-card.color-amarelo {
    border-top-color: #ffbb33;
}

.final-card.color-verde {
    border-top-color: #00C851;
}

.final-card.color-azul {
    border-top-color: #33b5e5;
}

.final-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.final-title {
    font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 1.2rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.final-info {
    font-size: 1.15rem;
    font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
    color: #222;
    margin-bottom: 0.7rem;
    text-align: center;
}

.final-color-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.7rem 0 1.2rem 0;
    padding: 0.4rem 1.2rem;
    border-radius: 1rem;
    color: #fff;
    display: inline-block;
}

.final-color-label.color-vermelho {
    background: #ff4444;
}

.final-color-label.color-laranja {
    background: #ff8800;
}

.final-color-label.color-amarelo {
    background: #ffbb33;
    color: #333;
}

.final-color-label.color-verde {
    background: #00C851;
}

.final-color-label.color-azul {
    background: #33b5e5;
}

.final-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: #2563eb;
    color: #fff;
    border-radius: 0.9rem;
    font-size: 1.15rem;
    font-weight: bold;
    border: none;
    margin-top: 1.5rem;
    transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.final-btn:hover {
    background-color: #174ea6;
}

/* Botão principal moderno */
.main-gradient-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    border-radius: 1rem;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    padding: 1.5rem 0;
}

.main-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body.bg-default {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

body.bg-vermelho {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

body.bg-laranja {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

body.bg-amarelo {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
}

body.bg-verde {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

body.bg-azul {
    background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
}

.protocol-button,
.discriminator-btn,
.final-card,
.history-item,
.login-container {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Ícone do histórico */
.history-icon {
    font-size: 2rem;
    margin-right: 0.7rem;
    vertical-align: middle;
    display: inline-block;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

/* Remover backgrounds coloridos dos elementos para exibir a imagem de fundo */
.protocol-button {
    background: transparent !important;
}

.final-bg {
    background: none !important;
}

.final-card {
    background: rgba(255, 255, 255, 0.7) !important;
}

.pediatric-bg {
    background: none !important;
}

.protocol-color-block,
.protocol-color-header,
.color-label,
.discriminator-card,
.discriminator-btn,
.history-container,
.classification-screen,
.protocol-screen,
.discriminator-screen,
.final-screen,
.login-screen {
    background: none !important;
}

/* Remover fundo branco do container da tela de seleção de protocolo */
#protocolScreen {
    background: none !important;
}

/* Manter fundo branco nos botões de protocolo */
.protocol-button {
    background: #fff !important;
}

.optional-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.7rem;
    justify-items: center;
    margin: 0.7rem 0 0.7rem 0;
}

@media (min-width: 700px) {
    .optional-fields-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.7rem 1.2rem;
    }
}

.header-protocolos {
    width: 100%;
    margin-top: 0;
    margin-bottom: 1.2rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    color: #1e3a8a;
    font-size: 2.1rem;
    font-weight: 900;
    text-align: center;
    padding: 1.1rem 0 0.7rem 0;
    border-radius: 0 0 1.2rem 1.2rem;
    position: relative;
    z-index: 10;
}

.header-protocolos .btn-voltar {
    position: absolute;
    left: 1.2rem;
    top: 1.1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: background 0.2s;
}

.header-protocolos .btn-voltar:hover {
    background: #f59e42;
    color: #fff;
}