/* GIAO DIỆN SOFT BRUTALISM - IMAGE COMPRESSOR BATCH */
.tool-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1000px; margin: 20px auto;
    border: 3px solid #111111; border-radius: 12px;
    box-shadow: 6px 6px 0px #111111; padding: 30px;
    background: #ffffff; color: #111111; box-sizing: border-box;
}

h2.tool-title {
    font-family: 'Montserrat', sans-serif; font-size: 2rem; text-align: center;
    text-transform: uppercase; margin-top: 0; margin-bottom: 25px; font-weight: 900;
}

/* Upload Zone */
.upload-zone {
    border: 4px dashed #111111; border-radius: 12px; background-color: #f4f4f4;
    padding: 60px 20px; text-align: center; cursor: pointer; transition: background-color 0.2s, transform 0.2s;
}
.upload-zone:hover, .upload-zone.dragover { background-color: #e2f0cb; transform: scale(1.02); }
.upload-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.upload-zone h3 { margin: 0 0 10px 0; font-family: 'Montserrat', sans-serif; font-size: 1.3rem; }
.upload-zone p { margin: 5px 0; color: #555; font-weight: 600; }
.privacy-note { color: #5FB376 !important; font-size: 0.9rem; margin-top: 15px !important; }

/* Workspace */
.workspace-area { margin-top: 10px; }

.settings-panel {
    background-color: #f9f9f9; border: 3px solid #111111; border-radius: 8px;
    padding: 25px; margin-bottom: 20px; display: grid; grid-template-columns: 2fr 2fr 1.5fr;
    gap: 20px; box-shadow: 4px 4px 0px #111111; align-items: end;
}

.input-group label { display: block; font-weight: 800; margin-bottom: 10px; font-size: 1.05rem; }
.input-group small { display: block; margin-top: 8px; font-weight: 600; color: #666; }

/* Slider */
.slider-brutal {
    -webkit-appearance: none; width: 100%; height: 15px; background: #ddd;
    border: 2px solid #111111; border-radius: 8px; outline: none; cursor: pointer; margin-top: 5px;
}
.slider-brutal::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 25px; height: 25px;
    background: #ffdac1; border: 3px solid #111111; border-radius: 50%; cursor: pointer;
}

.input-group select {
    width: 100%; padding: 12px 15px; font-size: 1.1rem; font-weight: 700;
    font-family: 'Inter', sans-serif; border: 3px solid #111111;
    border-radius: 8px; outline: none; background-color: #fff; cursor: pointer;
}

/* Nút Bấm Chung */
button {
    cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 1rem;
    font-weight: 900; padding: 12px 15px; border: 3px solid #111111; border-radius: 8px;
    box-shadow: 4px 4px 0px #111111; transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase; color: #111111; outline: none;
}
button:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111111; }
button:disabled { background-color: #ddd; color: #888; cursor: not-allowed; box-shadow: 4px 4px 0px #111111; }

.btn-process { background-color: #ffb7b2; width: 100%; height: 50px; font-size: 1.1rem;}
.btn-download-all { background-color: #b5ead7; }
.btn-clear { background-color: #eceae4; }

.action-buttons-bottom { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; margin-top: 20px; }

/* Tổng quan */
.summary-box {
    display: flex; justify-content: space-around; background-color: #e6f7ff;
    border: 3px dashed #111111; border-radius: 8px; padding: 15px; margin-bottom: 20px;
    font-weight: 700; font-size: 1.1rem; flex-wrap: wrap; gap: 10px;
}
.summary-box strong { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; }
.text-blue { color: #2d7bb5; }
.saving-badge { background-color: #e2f0cb; padding: 2px 10px; border-radius: 5px; border: 2px solid #111; }

/* Danh sách hình ảnh */
.image-list-container { border: 3px solid #111111; border-radius: 8px; overflow: hidden; }
.list-title { background-color: #f4f4f4; margin: 0; padding: 15px; border-bottom: 3px solid #111111; font-family: 'Montserrat', sans-serif; }
.image-list { max-height: 400px; overflow-y: auto; background-color: #fff; padding: 10px; }

.image-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px; border: 2px solid #111111; border-radius: 8px;
    margin-bottom: 10px; background-color: #f9f9f9; gap: 15px; flex-wrap: wrap;
}
.image-item:last-child { margin-bottom: 0; }

.item-thumb {
    width: 60px; height: 60px; border: 2px solid #111; border-radius: 6px;
    background-color: #eee; overflow: hidden; flex-shrink: 0;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.item-info { flex: 1; min-width: 150px; }
.item-name { font-weight: 800; font-size: 0.95rem; word-break: break-all; margin-bottom: 5px; }
.item-sizes { font-size: 0.9rem; font-weight: 600; color: #555; }

.item-status { font-weight: 800; font-family: 'Montserrat', sans-serif; color: #e05a47; width: 100px; text-align: center;}
.item-status.success { color: #5FB376; }

.btn-download-single {
    padding: 8px 12px; font-size: 0.85rem; background-color: #fdfd96; border-width: 2px;
    box-shadow: 3px 3px 0px #111111;
}
.btn-download-single:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111111; }

@media (max-width: 850px) {
    .settings-panel { grid-template-columns: 1fr; gap: 15px; }
    .action-buttons-bottom { grid-template-columns: 1fr; }
    .summary-box { flex-direction: column; text-align: center; }
}