#pdf-compress-ui {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.cmpr-section { text-align: center; }
.cmpr-section h3, .cmpr-section h4 { color: #2c3e50; margin-bottom: 1rem; }

#cmpr-drop-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

#cmpr-drop-zone.cmpr-drag {
    border-color: #4e73df;
    background: #f8f9ff;
}

.cmpr-icon { font-size: 48px; margin-bottom: 1rem; }
.cmpr-icon-ok { color: #28a745; }

#cmpr-drop-zone p { color: #7f8c8d; margin-bottom: 1rem; }
.cmpr-hint { color: #95a5a6; font-size: 14px; margin-top: 0.5rem; }
.cmpr-filename { color: #4e73df; font-weight: 600; margin-top: 0.5rem; }

#cmpr-file-input { display: none; }

.cmpr-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-decoration: none;
}

.cmpr-btn-primary { background: #4e73df; color: #fff; }
.cmpr-btn-primary:hover { background: #3d5fc4; }
.cmpr-btn-success { background: #28a745; color: #fff; margin-top: 0.5rem; }
.cmpr-btn-success:hover { background: #218838; }

.cmpr-link-btn {
    background: none;
    border: none;
    color: #4e73df;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 12px;
    display: inline-block;
}

.cmpr-file-info {
    text-align: left;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cmpr-preset-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.cmpr-preset-tab {
    padding: 8px 16px;
    border: 1px solid #dbe4ff;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.cmpr-preset-tab.is-active {
    background: #4e73df;
    border-color: #4e73df;
    color: #fff;
}

.cmpr-preset-hint {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 1.25rem;
}

.cmpr-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cmpr-thumb-wrap {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    background: #fff;
    max-width: 160px;
}

.cmpr-page-thumb {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.cmpr-page-label {
    font-size: 12px;
    margin-top: 6px;
    color: #64748b;
    font-weight: 600;
}

.cmpr-actions { margin-top: 1rem; }

.cmpr-progress-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem auto;
    max-width: 420px;
}

#cmpr-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4e73df, #28a745);
    transition: width 0.15s ease;
}

#cmpr-progress-status { color: #64748b; font-size: 14px; }

.cmpr-result-info {
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cmpr-result-note {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 1rem;
}

.cmpr-status {
    margin-top: 1rem;
    color: #374151;
    font-size: 14px;
}

.cmpr-status-error { color: #dc2626; }

@media (max-width: 640px) {
    #pdf-compress-ui { padding: 1rem; }
}
