/* style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    overflow: hidden;
}
.header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header img {
    height: 40px;
    margin-right: 20px;
}
.header .line {
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 500px; /* Ajustado para um campo de busca maior */
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container h1 {
    margin-top: 0;
}
.container textarea {
    width: 100%;
    height: 200px; /* Campo de busca maior */
    margin-bottom: 10px;
    resize: vertical; /* Permitir redimensionar apenas verticalmente */
    padding: 10px;
    box-sizing: border-box;
}
.container button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}
.container button:disabled {
    background-color: #ccc;
}
.floating-results {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    width: auto; /* Adicionado para permitir que a largura se ajuste ao conteúdo */
    max-width: 90vw; /* Limitar a largura máxima */
}
.floating-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.floating-results table, th, td {
    border: 1px solid #ddd;
}
.floating-results th, td {
    padding: 8px;
    text-align: left;
}
.floating-results .download-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.floating-results .download-buttons a {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    flex: 1;
    margin: 5px;
}
.close-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 20px; /* Adicionado para criar distância da tabela */
}
.help-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    float: right;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    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: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
    text-align: center;
}
.modal input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    box-sizing: border-box;
}
.modal button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.modal button.close {
    background-color: #ff4d4d;
}
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.loading-overlay .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

