/* Custom CSS for WP Multi-Tool Image Resizers */

/* font overrides for our tool container */
.wpmtr-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wpmtr-wrapper h1, 
.wpmtr-wrapper h2, 
.wpmtr-wrapper h3, 
.wpmtr-wrapper h4 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Base resets inside the container to prevent theme interference */
.wpmtr-wrapper * {
    box-sizing: border-box;
}

.wpmtr-wrapper img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Custom styles for the Cropper.js container */
.wpt-cropper-container {
    background-color: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    max-height: 450px;
    width: 100%;
}

.cropper-view-box,
.cropper-face {
    border-radius: 4px;
}

/* Custom modern drag-and-drop dropzone hover */
.wpt-dropzone {
    border: 2px dashed #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpt-dropzone.dragover {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
    transform: scale(0.995);
}

/* Animation utilities for modern UI updates */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpt-animate-fade-in {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* custom scrollbar for pre-sets lists */
.wpt-custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.wpt-custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.wpt-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.wpt-custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism background for output items */
.wpt-glassmorphism {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Ensure canvas isn't visible */
#wpt-hidden-canvas {
    display: none !important;
}
