body {
    background: #0e0e0e;
    color: #f1f1f1;
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

h1,
h2 {
    text-align: center;
    font-weight: 300;
    margin-bottom: 25px;
}

/* UPLOAD */
.upload-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

input[type=file] {
    padding: 10px;
    border-radius: 6px;
    background: #1c1c1c;
    color: #ccc;
    border: 1px solid #333;
}

/* BOTÕES */
.btn {
    padding: 12px 25px;
    background: #3e7bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.btn:hover {
    background: #5c92ff;
}

.btn-danger {
    background: #d63e3e;
}

.btn-danger:hover {
    background: #e05757;
}

.btn:disabled {
    background: #555;
    cursor: not-allowed;
}

/* GRID DESKTOP */
.layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 25px;
    margin-top: 20px;
}

/* PAINEL LATERAL */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* DOWNLOAD LINK */
.download-link {
    color: yellow;
    text-decoration: none;
    font-size: 18px;
}

.download-link:hover {
    text-decoration: underline;
}

/* ESCONDER */
.hidden {
    display: none !important;
}

/* GRID DE IMAGENS */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* CARD */
.thumb {
    background: #1a1a1a;
    border: 1px solid #292929;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: 0.25s;
    cursor: pointer;
    /* deixa claro que é clicável */
}

.thumb:hover {
    transform: scale(1.05);
    border-color: #555;
}

.thumb img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
}

/* AUMENTA A ÁREA CLICÁVEL DO CHECKBOX */
.chk {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
}

/* RESPONSIVO: no celular painel vai para baixo */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        /* 1 coluna */
    }

    .side-panel {
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }
}