/* CSS para o Plugin Image to PDF Converter */
.itp-converter-container {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    box-sizing: border-box; /* Adicionado para melhor controle de padding/border */
}

.itp-converter-container h2 {
    text-align: center;
    margin-top: 0; /* Ajuste para remover margem superior excessiva */
    margin-bottom: 20px;
    color: #333;
    font-size: 22px; /* Ajuste de tamanho para melhor hierarquia */
}

.itp-upload-area {
    border: 2px dashed #ccc;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 20px;
    transition: background-color 0.2s ease-in-out; /* Adicionado para feedback de drag */
}

.itp-upload-area.itp-drag-over-active { /* Classe para feedback visual ao arrastar */
    background-color: #e9f5ff;
    border-color: #0073aa;
}

.itp-upload-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: none; /* Garantir que não haja borda padrão */
}

.itp-upload-button:hover {
    background-color: #005a87;
}

.itp-drag-text {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

.itp-formats-text {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

#itp-file-list {
    margin-bottom: 20px;
}

#itp-file-list .itp-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 3px;
    margin-bottom: 5px;
    background-color: #fff;
    word-break: break-all; /* Evitar que nomes longos quebrem o layout */
}

#itp-file-list .itp-file-item span:first-child { /* Nome do arquivo */
    flex-grow: 1;
    margin-right: 10px;
    font-size: 14px;
}

#itp-file-list .itp-remove-file {
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    padding: 5px; /* Aumentar área de clique */
    font-size: 16px; /* Tornar o '✖' um pouco maior */
}

#itp-convert-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

#itp-convert-button:hover {
    background-color: #218838;
}

#itp-convert-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#itp-download-area a {
    display: block;
    width: 100%; 
    padding: 12px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

#itp-download-area a:hover {
    background-color: #0056b3;
}

#itp-feedback-area {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
    font-size: 14px;
    word-break: break-word;
}

#itp-feedback-area.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#itp-feedback-area.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#itp-size-notice {
    font-size: 0.85em; /* Levemente menor */
    color: #555;
    margin-top:15px; /* Mais espaço */
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .itp-converter-container {
        margin: 10px;
        padding: 15px;
    }
    .itp-converter-container h2 {
        font-size: 20px; /* Ajuste para telas menores */
    }

    .itp-upload-area {
        padding: 20px;
    }

    .itp-upload-button {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%; /* Botão ocupa largura total para facilitar toque */
        box-sizing: border-box;
    }
    .itp-drag-text {
        font-size: 13px;
    }
    #itp-file-list .itp-file-item span:first-child {
        font-size: 13px;
    }
    #itp-convert-button, #itp-download-area a {
        font-size: 15px;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .itp-converter-container h2 {
        font-size: 18px;
    }
    .itp-upload-area {
        padding: 15px;
    }
    .itp-upload-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    .itp-drag-text, .itp-formats-text {
        font-size: 12px;
    }
    #itp-file-list .itp-file-item span:first-child {
        font-size: 12px;
    }
     #itp-file-list .itp-remove-file {
        font-size: 14px;
        padding: 4px;
    }
    #itp-convert-button, #itp-download-area a {
        font-size: 14px;
        padding: 10px;
    }
    #itp-feedback-area {
        font-size: 13px;
    }
    #itp-size-notice {
        font-size: 0.8em;
    }
}

