/* Estilos gerais */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 50px;
}

/* Container principal */
.container {
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* Área de upload */
.upload-section {
    margin-top: 20px;
    border: 2px dashed #007bff;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

/* Quando um arquivo é arrastado para a área */
.upload-section.dragover {
    background: #e0f0ff;
    border-color: #0056b3;
}

/* Para melhorar a usabilidade, adicionar um indicativo visual */
.upload-section:hover {
    background: #f0f8ff;
}

input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Botões */
button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    background: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background: #0056b3;
}

/* Visualização da imagem */
.image-preview {
    margin-top: 15px;
    display: none;
}

.image-preview img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loader animado */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 10px auto;
}

/* Animação do loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensagem de resposta */
.response-success {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.response-error {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}
