.image-preview-frame {
    position: relative;
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    background-color: #f8fafc;
    background-image: linear-gradient(45deg, #eef2f7 25%, transparent 25%), linear-gradient(-45deg, #eef2f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef2f7 75%), linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.image-preview-frame img {
    display: block;
    max-height: 520px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

#dropZone.is-dragging {
    border-color: rgb(99 102 241);
    background: rgb(238 242 255 / .65);
}

html.dark .image-preview-frame {
    border-color: #334155;
    background-color: #111827;
    background-image: linear-gradient(45deg, #1e293b 25%, transparent 25%), linear-gradient(-45deg, #1e293b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1e293b 75%), linear-gradient(-45deg, transparent 75%, #1e293b 75%);
}

html.dark #dropZone.is-dragging {
    border-color: #818cf8;
    background: rgb(49 46 129 / .2);
}

html.dark .pk-card {
    background-color: #111827;
    border-color: #334155;
}

html.dark .image-preview-frame+* {
    color: #e2e8f0;
}

html.dark #imageResizerApp input,
html.dark #imageResizerApp select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

html.dark #imageResizerApp .bg-slate-50 {
    background-color: #0f172a !important;
}

html.dark #imageResizerApp .text-slate-900,
html.dark #imageResizerApp .text-slate-800,
html.dark #imageResizerApp .text-slate-700 {
    color: #f8fafc !important;
}

html.dark #imageResizerApp .text-slate-600,
html.dark #imageResizerApp .text-slate-500 {
    color: #94a3b8 !important;
}

@media (max-width: 640px) {
    .image-preview-frame {
        min-height: 220px;
    }
}
