﻿/* ==================================================
   âœ‚ï¸ PROPOKIT CROP MODAL & CONTAINER STYLING
   ================================================== */

/* Crop container styling */
#cropContainer,
#companyIntroCropContainer {
    width: 650px !important;
    height: 360px !important;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    /* Removed blue border that was creating blue line */
}

/* Image canvas for cropping */
#imageCanvas,
#companyIntroImageCanvas {
    max-width: 100%;
    max-height: 100%;
    cursor: crosshair;
}

/* Crop overlay */
.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Crop selection area */
.crop-selection {
    position: absolute;
    border: 2px solid #fff;
    background: transparent;
    cursor: move;
}

/* Crop handles */
.crop-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border: 1px solid #000;
    cursor: pointer;
}

.crop-handle.nw { top: -4px; left: -4px; cursor: nw-resize; }
.crop-handle.ne { top: -4px; right: -4px; cursor: ne-resize; }
.crop-handle.sw { bottom: -4px; left: -4px; cursor: sw-resize; }
.crop-handle.se { bottom: -4px; right: -4px; cursor: se-resize; }
.crop-handle.n { top: -4px; left: 50%; margin-left: -4px; cursor: n-resize; }
.crop-handle.s { bottom: -4px; left: 50%; margin-left: -4px; cursor: s-resize; }
.crop-handle.w { top: 50%; left: -4px; margin-top: -4px; cursor: w-resize; }
.crop-handle.e { top: 50%; right: -4px; margin-top: -4px; cursor: e-resize; }

/* ==================================================
   CROP MODAL CONTROLS
   ================================================== */

.crop-controls {
    margin-top: 15px;
    text-align: center;
}

.crop-controls button {
    margin: 0 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.crop-apply {
    background-color: #28a745;
    color: white;
}

.crop-apply:hover {
    background-color: #218838;
}

.crop-cancel {
    background-color: #6c757d;
    color: white;
}

.crop-cancel:hover {
    background-color: #5a6268;
}

.crop-reset {
    background-color: #ffc107;
    color: #212529;
}

.crop-reset:hover {
    background-color: #e0a800;
}

/* ==================================================
   CROP MODAL RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 768px) {
    #cropContainer,
    #companyIntroCropContainer {
        width: 100% !important;
        height: 300px !important;
    }

    .crop-controls button {
        padding: 6px 12px;
        font-size: 12px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    #cropContainer,
    #companyIntroCropContainer {
        height: 250px !important;
    }

    .crop-handle {
        width: 12px;
        height: 12px;
    }

    .crop-handle.nw { top: -6px; left: -6px; }
    .crop-handle.ne { top: -6px; right: -6px; }
    .crop-handle.sw { bottom: -6px; left: -6px; }
    .crop-handle.se { bottom: -6px; right: -6px; }
    .crop-handle.n { top: -6px; margin-left: -6px; }
    .crop-handle.s { bottom: -6px; margin-left: -6px; }
    .crop-handle.w { left: -6px; margin-top: -6px; }
    .crop-handle.e { right: -6px; margin-top: -6px; }
}
