.container {
    width: 1000px;
    max-width: 100%;
}

.three-cols-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.preview-area .info {
    margin: 12px 0;
    font-weight: 600;
    color: #555;
}

.preview-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    align-items: flex-start;
}

.source-box,
.result-box {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    min-width: 0;
}

.source-box img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
}

#table-preview {
    overflow: auto;
    max-height: 420px;
}

.preview-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.preview-table th,
.preview-table td {
    border: 1px solid #ccc;
    padding: 4px 8px;
    text-align: left;
    white-space: nowrap;
}

.preview-table th {
    background: #f0f4fa;
    font-weight: 700;
}

.progress-wrap {
    margin: 12px 0;
}

.progress-track {
    height: 10px;
    background: #e9eef5;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #4a90e2;
    transition: width 0.2s ease;
}

.hidden {
    display: none;
}

.download-btn {
    margin-top: 12px;
    background-color: #4a90e2;
}

.download-btn:hover {
    background-color: #357abd;
}

.download-btn.txt {
    background-color: #5cb85c;
}

.download-btn.txt:hover {
    background-color: #4cae4c;
}

@media (max-width: 768px) {
    .preview-row {
        flex-direction: column;
    }
}
