/* Cropper Workspace Styles */
.cropper-bottom-sheet .bottom-sheet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
    user-select: none;
    background: var(--bg-primary);
}

/* Cropper Workplace - Standard Square Area */
.cropper-workspace {
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: move;
    overflow: hidden;
}

/* Container for the image canvas */
.cropper-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

#cropper-canvas {
    max-width: none;
    touch-action: none;
}

/* The adjustable Crop Box - THICKER BORDER */
.crop-box {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.60);
    /* Requested color */
    box-sizing: border-box;
    cursor: move;
    z-index: 10;
}

/* Circle border removed as requested */

/* The dark overlay covering the entire image with a circular hole */
.cropper-view-mask {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    /* Background gradient applied via JS to create circular hole */
}

/* Corner handles matching the premium style */
.crop-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 15;
}

.crop-handle::before,
.crop-handle::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.87);
    /* Requested color */
}

.handle-tl {
    top: -2px;
    left: -2px;
    cursor: nwse-resize;
}

.handle-tr {
    top: -2px;
    right: -2px;
    cursor: nesw-resize;
}

.handle-bl {
    bottom: -2px;
    left: -2px;
    cursor: nesw-resize;
}

.handle-br {
    bottom: -2px;
    right: -2px;
    cursor: nwse-resize;
}

.handle-tl::before {
    width: 4px;
    height: 16px;
    top: 0;
    left: 0;
}

.handle-tl::after {
    width: 16px;
    height: 4px;
    top: 0;
    left: 0;
}

.handle-tr::before {
    width: 4px;
    height: 16px;
    top: 0;
    right: 0;
}

.handle-tr::after {
    width: 16px;
    height: 4px;
    top: 0;
    right: 0;
}

.handle-bl::before {
    width: 4px;
    height: 16px;
    bottom: 0;
    left: 0;
}

.handle-bl::after {
    width: 16px;
    height: 4px;
    bottom: 0;
    left: 0;
}

.handle-br::before {
    width: 4px;
    height: 16px;
    bottom: 0;
    right: 0;
}

.handle-br::after {
    width: 16px;
    height: 4px;
    bottom: 0;
    right: 0;
}

/* 3x3 Grid */
.cropper-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    z-index: 11;
}

.grid-active .cropper-grid {
    display: block;
}

.grid-line-v1 {
    position: absolute;
    left: 33.33%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.60);
    /* Requested color */
}

.grid-line-v2 {
    position: absolute;
    left: 66.66%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.60);
    /* Requested color */
}

.grid-line-h1 {
    position: absolute;
    top: 33.33%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.60);
    /* Requested color */
}

.grid-line-h2 {
    position: absolute;
    top: 66.66%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.60);
    /* Requested color */
}

/* Simple Info Style */
.cropper-simple-info {
    text-align: center;
    margin-bottom: 20px;
}

.cropper-simple-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Apply Button Container */
.cropper-apply-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.cropper-action-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transition: all 0.2s ease;
}

.cropper-action-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cropper-workspace {
        margin-bottom: 15px;
    }
}
