.compress-dropzone {
    border: 2.5px dashed #c3cfe2;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f8faff 0%, #eef2f9 100%);
    position: relative;
}

.compress-dropzone:hover,
.compress-dropzone.dragover {
    border-color: #5b73e8;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 115, 232, 0.12);
}

.compress-dropzone i {
    font-size: 48px;
    color: #5b73e8;
    margin-bottom: 16px;
    display: block;
}

.compress-dropzone p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 0;
}

.compress-dropzone .browse-link {
    color: #5b73e8;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.compress-settings {
    background: #f8faff;
    border-radius: 12px;
    padding: 20px 24px;
}

.quality-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #ef4444 0%, #eab308 40%, #22c55e 75%, #5b73e8 100%);
    outline: none;
    transition: opacity .2s;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #5b73e8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(91, 115, 232, 0.25);
    transition: transform 0.2s ease;
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.quality-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #5b73e8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(91, 115, 232, 0.25);
}

.quality-value {
    display: inline-block;
    background: #5b73e8;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    padding: 4px 14px;
    min-width: 56px;
    text-align: center;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.stat-card .stat-value.text-success {
    color: #22c55e !important;
}

.stat-card .stat-value.text-primary {
    color: #5b73e8 !important;
}

.stat-card .stat-value.text-danger {
    color: #ef4444 !important;
}

.preview-container {
    display: none;
}

.preview-container.visible {
    display: block;
}

.preview-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: repeating-conic-gradient(#f3f4f6 0% 25%, transparent 0% 50%) 50% / 20px 20px;
    position: relative;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img-wrapper img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.preview-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.format-btn {
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
}

.format-btn:hover {
    border-color: #5b73e8;
    color: #5b73e8;
}

.format-btn.active {
    border-color: #5b73e8;
    background: #eef2ff;
    color: #5b73e8;
}

.compress-progress {
    display: none;
    margin-top: 16px;
}

.compress-progress .progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.compress-progress .progress-bar {
    background: linear-gradient(90deg, #5b73e8, #7c3aed);
    transition: width 0.4s ease;
}

.file-info-bar {
    display: none;
    background: #f0f4ff;
    border-radius: 10px;
    padding: 12px 18px;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.file-info-bar.visible {
    display: flex;
}

.file-info-bar .file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #5b73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.file-info-bar .file-details {
    flex: 1;
    min-width: 0;
}

.file-info-bar .file-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info-bar .file-meta {
    font-size: 12px;
    color: #9ca3af;
}

.file-info-bar .file-remove {
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    font-size: 18px;
}

.file-info-bar .file-remove:hover {
    color: #ef4444;
}

#compressedCanvas {
    display: none;
}