.tool-image-compressor {
    background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.tool-image-compressor .image-compressor-wrapper {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    border-left: 4px solid #22C55E;
}

.tool-image-compressor .image-compressor-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22C55E 0%, #1F2937 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.image-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.image-dropzone.is-over {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.08);
}

.image-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-dropzone-icon {
    font-size: 2rem;
    color: #22C55E;
    margin-bottom: 0.65rem;
    display: block;
}

.tool-image-compressor .form-select,
.tool-image-compressor .form-range {
    cursor: pointer;
}

.tool-image-compressor .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
}

.tool-image-compressor .form-select:focus {
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.tool-image-compressor .form-range::-webkit-slider-thumb {
    background: #22C55E;
}

.tool-image-compressor .btn-image-download {
    background: #22C55E;
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.15rem;
}

.tool-image-compressor .btn-image-download:hover,
.tool-image-compressor .btn-image-download:focus {
    background: #16a34a;
    color: #fff !important;
}

.tool-image-compressor .btn-image-download:disabled {
    background: #cbd5e1;
    color: #64748b !important;
}

.tool-image-compressor .btn-image-clear {
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #1F2937 !important;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.15rem;
}

.tool-image-compressor .btn-image-clear:hover,
.tool-image-compressor .btn-image-clear:focus,
.tool-image-compressor .btn-image-clear:active {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #1F2937 !important;
}

.image-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-weight: 600;
    color: #334155;
}

.image-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.image-compare-col {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8fafc;
}

.image-compare-label {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.image-compare-col img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

@media (max-width: 767.98px) {
    .image-compare {
        grid-template-columns: 1fr;
    }

    .tool-image-compressor .btn-image-download,
    .tool-image-compressor .btn-image-clear {
        width: 100%;
    }
}
