/* ==========================================
   IMAGE RESIZER STYLES
========================================== */

/* Page Specifics */
.image-resizer-page {
    background-color: #f8f9fa;
}

/* Upload Area */
.upload-content {
    border: 2px dashed #dee2e6 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-content:hover,
.upload-content.drag-active {
    border-color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Editor Area - Preview */
.preview-container {
    background-image:
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#imagePreview {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Controls */
.nav-pills .nav-link {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Range Inputs */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

/* Practice Cards */
.practice-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .card-body[style*="min-height"] {
        min-height: 300px !important;
    }
}