/* ================================
   ESTILO GLOBAL
================================ */

body {
    font-family: "Segoe UI", Arial, sans-serif;
/*    background: #f2f4f8;
*/
    background: #081120;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 920px; /* +3cm equivalente */
    margin: auto;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}


/* ================================
   CAMPOS DO FORMULÁRIO
================================ */

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #ccd2dd;
    border-radius: 6px;
    font-size: 15px;
}

button {
    background: #2f67ff;
    padding: 12px 28px;
    font-size: 17px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: #244dcc;
}

button:disabled {
    background: #b7c3dd;
    cursor: not-allowed;
}


/* ================================
   RESULTADOS
================================ */

#resultado {
    margin-top: 22px;
    padding: 20px;
    background: #f9fafc;
    border-radius: 10px;
    border: 1px solid #e1e5ee;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
}


/* TITULOS DAS SEÇÕES */
#resultado h3 {
    margin-top: 22px;
    margin-bottom: 6px;
    font-size: 19px;
    color: #2a2e35;
}


/* TEXTO PRINCIPAL */
.texto {
    padding: 12px 14px;
    background: #ffffff;
    border-left: 4px solid #9bb6ff;
    border-radius: 6px;
    line-height: 1.45;
    font-size: 15px;
    color: #333;
}


/* ================================
   MENSAGENS COLORIDAS
================================ */

.ok {
    color: #0a7d14;
    background: #e6f6e8;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
}

.alerta {
    color: #b60000;
    background: #fdeaea;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
}

.erro {
    color: #fff;
    background: #cc0000;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
}


/* ================================
   LINKS DOS DOCUMENTOS
================================ */

#resultado a {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: #0051cc;
    text-decoration: none;
    word-break: break-all; /* Mantém dentro do box */
}

#resultado a:hover {
    text-decoration: underline;
}

/* ================================
   FILE INPUT COM BOTÃO X
================================ */

.file-wrapper {
    position: relative;
    margin-bottom: 18px; /* absorve o margin do input */
}

/* remove o margin do input dentro do wrapper */
.file-wrapper input[type="file"] {
    margin-bottom: 0;
}

#btnRemoverArquivo {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(calc(-50% + 3px));

    width: 22px;
    height: 22px;
    padding: 0;

    border-radius: 20%;
    border: 1px solid #ffffff;
    border: 1px solid #ccd2dd;
    background: #ffffff; 
    color: #000;

    font-size: 16px;
    font-weight: regular;
    line-height: 22px;
    text-align: center;

    cursor: pointer;
    display: none; /* continua controlado pelo JS */
}

#btnRemoverArquivo:hover {
    background: #9e9e9e;
}

