/* --- RESET DE ESTILOS DO ELEMENTOR E TEMA APENAS DENTRO DO NOSSO APP --- */
#eduq-validator-app * {
    box-sizing: border-box;
}

#eduq-validator-app {
    font-family: 'Inter', sans-serif; /* Força a fonte correta */
    color: #3B5160;
    max-width: 100%;
    position: relative;
}

/* --- TELA DE ENTRADA (INPUT) --- */
#eduq-validator-app .content-enter-code {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px; /* Corrigido o padding gigante de 76px original */
    text-align: center;
    background: transparent;
}

#eduq-validator-app .logo {
    max-width: 307px;
    width: 100%;
    margin: 0 auto 40px auto; /* Reduzido o margin-bottom de 164px original */
}

#eduq-validator-app .logo img {
    width: 100%;
    height: auto;
}

#eduq-validator-app .title-code {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #3B5160;
}

#eduq-validator-app .code-field {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Permite quebrar linha no mobile */
}

#input-standard {
    border: 1px solid #CFCFCF;
    height: 52px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    font-weight: 500;
    padding: 0 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

#input-standard:focus {
    border-color: #0082E5;
    box-shadow: 0 0 0 3px rgba(0, 130, 229, 0.15);
}

#input-standard.input-error {
    border-color: #F44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15) !important;
}

#eduq-validator-app .button-search {
    background: #0082E5;
    color: #fff;
    border: none;
    border-radius: 8px; /* Botão mais quadrado e moderno */
    height: 52px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

#eduq-validator-app .button-search:hover {
    background: #006bbd;
}

#eduq-validator-app .text-button-search {
    display: inline-block;
}

#eduq-validator-app .message-error {
    font-family: 'Inter', sans-serif;
    color: #F44336;
    text-align: center;
    height: 30px;
    padding-top: 15px;
    font-weight: 500;
}

#eduq-validator-app .terms-text {
    font-family: 'Inter', sans-serif;
    padding-top: 20px;
    line-height: 1.6;
    text-align: justify;
    font-size: 14px;
    color: #4A687B;
    max-width: 700px;
    margin: 0 auto;
}

#eduq-validator-app .terms-link {
    text-align: center;
    margin: 30px auto 0;
    display: table;
}

/* --- TELA DE RESULTADOS (DADOS DO DIPLOMA) --- */
#eduq-validator-app .content-data-file {
    display: none; /* Inicia oculto */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Sombra suave para destacar */
    margin-top: 20px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#eduq-validator-app .content-download-data {
    width: 100%;
    max-width: 320px;
    border-right: 1px solid #BDD4E6;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#eduq-validator-app .header-data {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #BDD4E6;
    width: 100%;
    margin-bottom: 20px;
}

#eduq-validator-app .header-data .image-data img {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

#eduq-validator-app .text-title {
    color: #4A687B;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

#eduq-validator-app .codigo-validacao {
    font-size: 18px;
    color: #0082E5;
    font-weight: 700;
}

#eduq-validator-app .body-data {
    text-align: center;
    width: 100%;
}

#eduq-validator-app .document-valid {
    color: #6ABD95;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    background: #e8f5f0;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
}

#eduq-validator-app .content-button {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

#button-standard {
    padding: 0 24px;
    min-width: 180px;
    border-radius: 100px;
    background: #0082E5;
    height: 44px;
    border: none;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

#button-standard:hover {
    background: #006bbd;
}

#eduq-validator-app .validate-document {
    color: #0082E5;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration-line: underline;
    cursor: pointer;
    margin-top: 30px;
    display: inline-block;
}

#eduq-validator-app .validate-document:hover {
    color: #006bbd;
}

/* --- ÁREA DE DADOS TEXTUAIS --- */
#eduq-validator-app .content-data-text {
    padding-left: 30px;
    padding-top: 0;
    width: calc(100% - 320px);
    overflow: auto;
}

#eduq-validator-app .content-data-text .title {
    color: #4A687B;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

#eduq-validator-app .content-data {
    margin-bottom: 35px;
}

#eduq-validator-app .content-data .header-data {
    color: #4A687B;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #BDD4E6;
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-align: left;
    border-right: none;
    padding-right: 0;
}

#eduq-validator-app .content-data .body-data .content-group-data {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

#eduq-validator-app .content-group-data > div {
    margin-bottom: 0;
}

#eduq-validator-app .description-secondary {
    color: #6C8595;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#eduq-validator-app .description-primary {
    color: #3B5160;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 4px;
    word-break: break-word;
}

/* --- LOADER --- */
#eduq-validator-app .content-loader {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    left: 0;
    top: 0;
    z-index: 9999;
    border-radius: 12px;
}

#eduq-validator-app .loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0082E5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVIDADE MELHORADA (TABLET E CELULAR) --- */
@media (max-width: 1024px) {
    #eduq-validator-app .content-data-file {
        flex-direction: column;
        align-items: center;
    }

    #eduq-validator-app .content-download-data {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #BDD4E6;
        padding-bottom: 30px;
        margin-bottom: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    #eduq-validator-app .header-data {
        width: auto;
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #eduq-validator-app .content-data-text {
        width: 100%;
        padding-left: 0;
    }

    #eduq-validator-app .content-data .body-data .content-group-data {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #eduq-validator-app .content-enter-code {
        padding: 30px 15px;
    }

    #eduq-validator-app .logo {
        max-width: 200px;
        margin-bottom: 20px;
    }

    #eduq-validator-app .title-code {
        font-size: 20px;
    }

    #eduq-validator-app .code-field {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    #input-standard {
        max-width: 100%;
        height: 48px;
    }

    #eduq-validator-app .button-search {
        width: 100%;
        max-width: 100%;
        height: 48px;
    }

    #eduq-validator-app .content-data .body-data .content-group-data {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #eduq-validator-app .content-download-data {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #eduq-validator-app .document-valid {
        font-size: 15px;
        width: 100%;
    }

    #button-standard {
        width: 100%;
        min-width: auto;
    }
}