.dropzone-container {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background-color: #f8fafc;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dropzone-container:hover, .dropzone-container.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.dropzone-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
}
.compressor-controls {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.image-compressor-compress-action {
    width: 100%;
}

#compress-action-btn {
    width: 100%;
    min-height: 52px;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px !important;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

#compress-action-btn i {
    flex: 0 0 auto;
}

#compress-action-btn span {
    min-width: 0;
}

#compress-action-btn:disabled {
    cursor: wait;
}
.comparison-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    margin-top: 20px;
}
.preview-img-box {
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-compressor-progress-row {
    min-width: 0;
}

.image-compressor-progress-content,
.image-compressor-progress-details {
    min-width: 0;
}

.image-compressor-progress-meta {
    min-width: 0;
    gap: 8px;
}

.image-compressor-progress-details {
    overflow: hidden;
    text-overflow: ellipsis;
}

#progress-file-name {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#progress-file-size {
    white-space: nowrap;
}

#progress-status-text {
    flex: 0 0 auto;
    white-space: nowrap;
}

.image-compressor-progress-track {
    width: 100%;
    min-width: 0;
}

#cancel-progress-btn {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

.image-compressor-results-summary {
    gap: 16px;
}

.image-compressor-saved-summary {
    min-width: 0;
    flex: 1 1 180px;
}

#stat-saved-percent {
    overflow-wrap: anywhere;
}

#download-compressed-btn {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

#download-compressed-btn i {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    #progress-container {
        padding: 14px !important;
    }

    .image-compressor-progress-row {
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .progress-file-icon {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px;
        font-size: 26px !important;
    }

    .image-compressor-progress-content {
        flex: 1 1 auto !important;
        padding-top: 1px;
    }

    .image-compressor-progress-meta {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2px !important;
        margin-bottom: 8px !important;
    }

    .image-compressor-progress-details {
        width: 100%;
        line-height: 1.35;
    }

    #progress-file-name {
        display: block;
        margin-right: 0 !important;
    }

    #progress-file-size {
        display: block;
        margin-top: 2px;
    }

    #progress-status-text {
        display: block;
        align-self: flex-start;
        font-size: 13px !important;
    }

    #cancel-progress-btn {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin: 0 !important;
        font-size: 18px !important;
    }

    .image-compressor-results-summary {
        flex-direction: column;
        align-items: stretch !important;
        gap: 14px;
    }

    .image-compressor-saved-summary {
        flex-basis: auto;
    }

    #download-compressed-btn {
        width: 100%;
        min-height: 56px;
        height: auto !important;
        padding: 12px 16px !important;
    }

    #compress-action-btn {
        min-height: 58px;
        padding: 12px 18px !important;
        font-size: 16px;
    }
}

/* Custom Range Slider styling to ensure visible track line */
#quality-range.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px !important;
    background: #cbd5e1 !important; /* visible gray track line */
    border-radius: 9999px;
    outline: none;
    margin: 15px 0;
    padding: 0;
}
#quality-range.form-range::-webkit-slider-runnable-track {
    background: #cbd5e1 !important;
    height: 6px;
    border-radius: 9999px;
    border: none;
}
#quality-range.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6 !important; /* blue thumb handler */
    cursor: pointer;
    margin-top: -6px; /* center thumb on webkit track */
    transition: background 0.15s ease-in-out;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#quality-range.form-range::-webkit-slider-thumb:hover {
    background: #2563eb !important;
}
#quality-range.form-range::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #cbd5e1 !important;
    border-radius: 9999px;
    border: none;
}
#quality-range.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #3b82f6 !important;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#quality-range.form-range::-moz-range-thumb:hover {
    background: #2563eb !important;
}
