.cropper-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cropper-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cropper-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.cropper-modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
}

.cropper-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.cropper-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.cropper-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cropper-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    background: #f9fafb;
}

.cropper-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 500px;
}

.cropper-container img {
    max-width: 100%;
    display: block;
}

.cropper-instructions {
    margin-top: 16px;
    padding: 12px 16px;
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.875rem;
}

.cropper-modal-actions {
    padding: 20px 24px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    background: white;
}

.cropper-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.cropper-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.cropper-btn:active {
    transform: translateY(0);
}

.cropper-btn-primary {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    border-color: #059669;
}

.cropper-btn-primary:hover {
    background: linear-gradient(to right, #059669, #047857);
    border-color: #047857;
}

.cropper-btn-cancel {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.cropper-btn-cancel:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

.cropper-btn-zoom-in,
.cropper-btn-zoom-out,
.cropper-btn-rotate {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.cropper-btn-zoom-in:hover,
.cropper-btn-zoom-out:hover,
.cropper-btn-rotate:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

@media (max-width: 768px) {
    .cropper-modal-container {
        max-height: 95vh;
    }

    .cropper-modal-header {
        padding: 16px 20px;
    }

    .cropper-modal-title {
        font-size: 1.25rem;
    }

    .cropper-modal-body {
        padding: 16px;
    }

    .cropper-container {
        max-height: 350px;
    }

    .cropper-modal-actions {
        padding: 16px;
        gap: 8px;
    }

    .cropper-btn {
        padding: 8px 14px;
        font-size: 0.8125rem;
        flex: 1 1 auto;
    }

    .cropper-btn span {
        display: none;
    }
}

.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    box-shadow: 0 0 0 1px #39f;
    outline: 0;
}

.cropper-dashed,
.cropper-center {
    opacity: 0.5;
}

.cropper-bg {
    background-image: none !important;
}
