/**
 * Crop Page Styles
 *
 * 裁剪页面专用样式
 */

/* Cropper 容器优化 */
#cropperImage {
    max-height: 70vh;
    width: 100%;
}

/* 确保 Cropper 容器响应式 */
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    #cropperImage {
        max-height: 50vh;
    }

    /* 工具栏按钮在移动端更小 */
    .grid.grid-cols-2 button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .grid.grid-cols-2 button svg {
        width: 1rem;
        height: 1rem;
    }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮禁用状态 */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cropper 遮罩层优化 */
.cropper-modal {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 裁剪框边框优化 */
.cropper-view-box {
    outline: 1px solid #3b82f6;
    outline-color: rgba(59, 130, 246, 0.75);
}

/* 加载状态 */
[x-cloak] {
    display: none !important;
}
