.image-preview-wrapper {
    width: 100%;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    border: 2px dashed #cbd5e1;
    /* Dashed border looks better for uploads */
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: #3b82f6;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-preview .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #b6b9be;
}

.image-preview .icon i {
    font-size: 2.5rem;
}


.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Animation for loading */
.rotate {
    animation: rotation 2s infinite linear;
    display: inline-block;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.btn-upload-custom {
    /* Base Colors */
    border: 1px solid #cbd5e1;
    /* Your exact requested color */
    background-color: #ffffff;
    color: #64748b;
    /* Slate gray for professional text color */

    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    /* 14px */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover State */
.btn-upload-custom:hover {
    background-color: #f8fafc;
    /* Very light blue/gray tint */
    border-color: #94a3b8;
    /* Slightly darker border on hover */
    color: #334155;
    /* Darker text on hover */
}

/* Active/Click State */
.btn-upload-custom:active {
    background-color: #f1f5f9;
    transform: translateY(1px);
}

/* Style for the Icon specifically if needed */
.btn-upload-custom i {
    font-size: 1.1rem;
    color: #94a3b8;
    /* Lighter icon color */
}

.btn-upload-custom:hover i {
    color: #3b82f6;
    /* Icon turns blue on hover for a nice touch */
}

.ql-editor{
    min-height: 400px;
}

.page-editor .ql-editor{
    min-height: 100px;
}