@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --primary-color: #2563eb;
    --error-color: red;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8fafc;
}

.container {
    max-width: 520px;
    width: 100%;
    min-width: 350px;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
        width: 100vw;
        min-height: 100vh;
    }
    body {
        background-color: white;
    }
}

.subtitle {
    color: #94a3b8;
    font-weight: normal;
}

.highlight {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 12px;
}

select, input:not([type="radio"]) {
    width: 100%;
    padding: 10px;
    margin-bottom: 0px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    appearance: none;
}

select {
    background: url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.radio-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}




.info {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 0px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8fafc;
}

td[style*="opacity: 0.4;"] {
    opacity: 0.4;
}

th[role="columnheader"] {
    cursor: pointer;
}

.error {
    border-color: var(--error-color);
}

.center {
    text-align: center;
}

@media (max-width: 400px) {
    table, th, td {
        font-size: 14px;
    }
    button {
        padding: 12px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.lupa {
    cursor: pointer;
    margin-right: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.comparison-table th {
    background-color: #f8fafc;
}

.comparison-table caption {
    font-size: 0.8em;
    margin-top: 10px;
}

.na-value {
    opacity: 0.25;
}

.difference-positive {
    color: green;
}

.difference-negative {
    color: red;
}

.comparison-table-caption {
    margin-top: 15px;
    text-align: left;
    font-size: 0.8em;
}

.fit-content {
    width: 1%;
    white-space: nowrap;
}

.fill {
    width: auto;
}

#radio-group-label {
    display: none;
    font-weight: bold;
    margin-bottom: 5px;
}

.chevron {
    display: inline-block;
    margin-left: 5px;
}

.chevron-up::after {
    content: '⬆️';
}

.chevron-down::after {
    content: '⬇️';
}


/* ----------------------------------------------- */

/* General button styling */
button {
    padding: 13px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 4px;
}

button:hover {
    background-color: #1e40af;
}

button:focus {
    outline: none;
}

/* Info button styling */
.info-button {
    margin-top: 8px;
    padding: 12px;
    background-color: #f8fafc;
    border: 1px solid #ddd;
    color: var(--primary-color);
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}



.info-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.info-button:focus {
    outline: none;
}

/* Radio button styling */

.radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.radio-card input {
    display: none;
}

.radio-card label {
    width: 100%;
    text-align: center;
    margin-bottom: 0px;
    font-size: 16px;
}

#resultados {
    display: none;
}

#resultados-thead th {
    font-size: 14px; /* Altere para o tamanho desejado */
}


.radio-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
    background-color: rgba(37, 99, 235, 0.1);
}

.radio-card:hover {
    background-color: #e9e9e9;
}



/* Video button styling */
.video-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    margin-bottom: 28px;
}

.video-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #f8fafc;
    border: 1px solid #ddd;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
}

.video-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.video-button:focus {
    outline: none;
}

.video-button .icon {
    font-size: 24px; /* Reduced font size for icon */
    color: var(--primary-color);
    margin-right: 8px; /* Reduced margin for better alignment */
    transition: color 0.3s;
}

.video-button .button-text {
    text-align: center;
    transition: color 0.3s;
}

.video-button .button-text strong,
.video-button .button-text span {
    color: var(--primary-color);
    display: block;
    font-size: 16px;
    transition: color 0.3s;
}

.video-button:hover .icon,
.video-button:hover .button-text strong,
.video-button:hover .button-text span {
    color: white;
}



/* ----------------------------------------------- */


.warning-message {
    color: #d9534f; /* Cor vermelha para chamar atenção */
    font-weight: bold;
    margin-top: 12px;
    text-align: left;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Fundo preto de baixa opacidade */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9980; /* Garantir que o loader fique sobreposto a todos os elementos */
}

.spinner {
   width: 11.2px;
   height: 11.2px;
   animation: spinner-z355kx 1s infinite linear;
   border-radius: 11.2px;
   box-shadow: 28px 0px 0 0 #2563eb, 17.4px 21.8px 0 0 #2563eb, -6.2px 27.2px 0 0 #2563eb, -25.2px 12px 0 0 #2563eb, -25.2px -12px 0 0 #2563eb, -6.2px -27.2px 0 0 #2563eb, 17.4px -21.8px 0 0 #2563eb;
}

@keyframes spinner-z355kx {
   to {
      transform: rotate(360deg);
   }
}

.aba {
    display: none;
}

.aba.ativa {
    display: block;
}

/* Adicionando estilo para a segunda aba */
#segunda-aba .title {
    text-align: center;
    color: var(--primary-color);
    margin-top: 12px;
    margin-bottom: 0px;
    font-weight: bold;
    font-size: 2em;
}

#segunda-aba .info {
    text-align: center;
    color: #000000; /* Ajustando a cor para combinar com a paleta */
    margin-top: 10px;
    margin-bottom: 24px;
    font-size: 1em;
    font-weight: normal;
}

#segunda-aba .info-button {
    margin-top: 16px; /* Ajustando o espaçamento para manter a consistência */
}

/* Estilo para o box informativo */
.info-box {
    display: block;
    padding: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 15px;
    font-size: 14px;
    background-color: #f8fafc;
    border: 1px solid #ddd;
    color: #333;
    text-align: left;
    border-radius: 8px; /* Rounded corners for a smoother look */
}

.info-box .header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure chevron is at the end */
    cursor: pointer;
}

.info-box .icon {
    font-size: 24px;
    margin-right: 10px; /* Consistent spacing */
    color: #333; /* Ensure icon color matches text */
}

.info-box h6 {
    font-size: 14px;
    margin: 0;
    color: #333; /* Ensure text color matches icon */
    flex: 1; /* Take up remaining space */
}

.info-box .chevron {
    font-size: 24px;
    transition: transform 0.3s ease;
    color: #333; /* Ensure chevron color matches text */
}

.info-box .content {
    display: none;
    margin-top: 10px;
    margin-bottom: 0px;
    line-height: 1.5; /* Better readability */
}

.option-opacity {
    color: rgba(0, 0, 0, 0.5);
}
