/* RESET BÁSICO */
*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #2563eb;
    /* Fundo azul igual ao upload */
    color: #f3f4f6;
    /* texto claro fora do container */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 15px;
    min-height: 100vh;
}

/* CONTAINER */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    /* branco para contraste */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    color: #111827;
    /* texto escuro dentro do container */
}

/* TÍTULO */
h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* LISTA DE ITENS */
.lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* NOME DO ARQUIVO */
.nome {
    flex: 1 1 60%;
    font-weight: 500;
    font-size: 1rem;
    word-break: break-word;
    color: #111827;
}

/* INFORMAÇÃO DE TAMANHO */
.info {
    flex: 0 0 auto;
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 12px;
    white-space: nowrap;
}

/* BOTÕES */
.botao {
    flex: 0 0 auto;
    margin-left: 12px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.botao:hover:not(.desativado) {
    background-color: #1e40af;
    transform: translateY(-1px);
}

.botao.desativado {
    background-color: #9ca3af !important;
    pointer-events: none;
    cursor: not-allowed;
    color: #f3f4f6;
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .item {
        flex-direction: column;
        align-items: flex-start;
    }

    .nome {
        flex: 1 1 100%;
        margin-bottom: 6px;
    }

    .info,
    .botao {
        margin-left: 0;
        margin-bottom: 6px;
        white-space: normal;
    }

    .botao {
        width: 100%;
        text-align: center;
    }
}