﻿.comprovante {
    border-color: black;
    border-style: dashed;
    border-width: 3px;
    text-align: left;
    width: 700px;
    padding: 4px;
    margin: 0 auto;
}

/* Estilos gerais */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #000;
}

hr {
    margin: 0 auto; /* Centraliza horizontalmente */
    border: 0; /* Remove o estilo padrão */
    border-top: 1px solid #c8c8c8; /* Adiciona a borda superior como linha */
}

.ui-icon-white {
    width: 24px;
    height: 24px;
    display: inline-block; /* Garante que o elemento seja visível */
    background-size: 384px 360px; /* Ajusta o tamanho do sprite proporcionalmente */
    background-image: url("/diploma/skinunesp/css/jquery_ui/images/ui-icons_ffffff_256x240.png") !important;
}

/*Para mudar a cor dos ícones do FontAwesome, é necessário gerar o filtro
https://angel-rs.github.io/css-color-filter-generator */

.ui-icon-fa {
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%)
    saturate(0%) hue-rotate(194deg) brightness(105%) contrast(102%);
}

.ui-icon-fa-eye {
    background-image: url("/diploma/resources/images/icons_fa/eye.svg") !important;
}

.ui-icon-fa-code {
    background-image: url("/diploma/resources/images/icons_fa/code.svg") !important;
}

.ui-icon-fa-bars {
    background-image: url("/diploma/resources/images/icons_fa/bars.svg") !important;
}

.ui-icon-fa-arrow-rotate-left {
    background-image: url("/diploma/resources/images/icons_fa/arrow-rotate-left.svg") !important;
}

.ui-icon-search-white {
    background-position: -240px -168px;
}

.ui-icon-grip-solid-horizontal-white {
    background-position: -72px -336px;
}

.ui-icon-triangle-2-e-w-white {
    background-position: -216px -24px;
}

.ui-icon-arrowreturnthick-1-w-white {
    background-position: 0 -96px;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.diploma-header {
    background-color: #003366; /* Cor oficial da UNESP */
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.diploma-header img.logo {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 30px;
}

.diploma-header h1 {
    margin: 0;
    font-size: 28px;
}

.diploma-header .status {
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
}

.diploma-header .text-background {
    background-color: white;
    border-radius: 5px;
    padding: 3px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #f4f4f4;
}

.center-validation{
    text-align: center;
    flex-direction: column !important;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.action-button i {
    font-size: 18px;
}

.action-button:not(.error-validation):hover {
    transform: translateY(-2px);
}

.button-blue {
    background-color: #0056b3;
}

.button-blue:hover {
    background-color: #003d80;
}

.button-acqua-marine {
    background-color: #08a5ac;
}

.button-acqua-marine:hover {
    background-color: #067d81;
}

.button-green {
    background-color: #2ecc71;
}

.button-green:hover {
    background-color: #27ae60;
}

.sections {
    display: none; /* Oculto inicialmente */
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px;
}

.section-button {
    padding: 12px 20px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.section-button:hover {
    background-color: #003d80;
    transform: translateY(-3px);
}

.content {
    display: none; /* Define como visível para animação funcionar */
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
    position: relative; /* Necessário para posicionar o pseudo-elemento */
}

.content::before {
    content: ''; /* Cria o pseudo-elemento */
    position: absolute;
    top: 0; /* Coloca no topo do elemento */
    left: 50%; /* Define a margem horizontal */
    width: 95%; /* Define o comprimento da "borda" */
    height: 2px; /* Espessura da "borda" */
    background-color: #c7c7c7; /* Cor da "borda" */
    z-index: 1; /* Garante que ficará acima do conteúdo */
    transform: translateX(-50%);
}

.content h2 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 1px;
}

.content p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.6;
}

.content strong {
    color: #0056b3;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Estilo do contêiner principal */
.content-verify {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.content-verify.border {
    border: 2px solid transparent; /* Borda transparente inicialmente */
    border-radius: 15px; /* Cantos arredondados */
    padding: 10px; /* Espaçamento interno */
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2); /* Sombra suave */
    margin: 15px;
}

.content-verify strong {
    line-height: 1.6;
    font-size: 16px;
    color: #003366;

}

/* Estilo do contêiner ITI */
.content-iti {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
    max-width: 70%;
    margin: auto auto;
    font-size: 16px;
    text-align: center;
}

.content-iti.border {
    border: 2px solid transparent; /* Borda transparente inicialmente */
    border-radius: 15px; /* Cantos arredondados */
    padding: 10px; /* Espaçamento interno */
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2); /* Sombra suave */
}

.link-iti {
    color: #0000FF !important;
    text-decoration: underline;
    cursor: pointer;
}

/* Grupo de entrada */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
}

/* Label */
.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Erro */
.error {
    color: red;
    margin-bottom: 10px;
}

/* Anulação */
.annulment {
    padding: 20px;
}

.annulment h2 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 1px;
}

.annulment p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.6;
}

.annulment strong {
    color: #0056b3;
}

/* Grupo de entrada com layout horizontal */
.input-group.horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

/* Estilo para recaptcha */
#html_element {
    padding-left: 15px;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 600px) {
    .section-button {
        font-size: 12px;
        padding: 10px 15px;
    }

    .content h2 {
        font-size: 20px;
    }

    .content p {
        font-size: 14px;
    }

    .action-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media print {
    body {
        color: #000 !important; /* Força a cor preta como padrão */
        -webkit-print-color-adjust: exact; /* Garante cores exatas em WebKit (Chrome, Edge) */
        print-color-adjust: exact; /* Garante cores exatas em navegadores compatíveis */
    }

    .linha {
        margin: 0 auto; /* Centraliza horizontalmente */
        border: 0; /* Remove o estilo padrão */
        border-top: 1px solid #c8c8c8; /* Adiciona a borda superior como linha */
    }

    .diploma-header {
        color: #fff !important;
    }

    .status {
        color: #fff !important;
    }
    .button-blue {
        color: #fff !important;
    }

    .text-background{
        color: black !important;
    }

    header {
        display: none !important;  /* Esconde os botões de seção */
    }

    .action-buttons {
        display: none !important;  /* Esconde os botões de ação */
    }

    .sections {
        display: none !important;  /* Esconde os botões de seção */
    }

    .content {
        color: #000 !important; /* Texto preto padrão */
        display: block !important; /* Garante que as seções de conteúdo apareçam */
        padding: 20px 20px 15px 20px;
    }

    .content::before {
        color: #000 !important; /* Texto preto padrão */
    }

    .error-validation {
        text-align: center;
        color: darkred !important;
    }

    .hide-on-print{
        display: none !important;
    }
}


@media(max-width: 850px){
    .action-buttons{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: left;
    }

    .adjusted-margin{
        margin-left: 13px;
    }
}
