/* Base container for cropper */
.cropper-container {
  direction: ltr;
  font-size: 0;
  line-height: 0;
  position: relative;
  -ms-touch-action: none;
  touch-action: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Image styling */
.cropper-container img {
  image-orientation: 0deg;
  display: block;
  height: 100%;
  max-height: none !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100%;
}

/* Basic styling for all cropper elements */
.cropper-canvas,
.cropper-crop-box,
.cropper-drag-box,
.cropper-modal,
.cropper-wrap-box {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cropper-canvas,
.cropper-wrap-box {
  overflow: hidden;
}

/* Transparent drag area */
.cropper-drag-box {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Modal background with slight opacity */
.cropper-modal {
  background-color: rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

/* View box for crop preview with focus outline */
.cropper-view-box {
  display: block;
  height: 100%;
  outline: 2px solid #39f;
  outline-color: rgba(51, 153, 255, 0.75);
  overflow: hidden;
  width: 100%;
  transition: outline 0.3s ease;
}

/* Dashed borders inside the cropper */
.cropper-dashed {
  border: 0 dashed #eee;
  display: block;
  opacity: 0.5;
  position: absolute;
  transition: opacity 0.3s ease;
}

/* Horizontal and vertical dashed lines */
.cropper-dashed.dashed-h {
  border-bottom-width: 1px;
  border-top-width: 1px;
  height: 33.3333%;
  left: 0;
  top: 33.3333%;
  width: 100%;
}

.cropper-dashed.dashed-v {
  border-left-width: 1px;
  border-right-width: 1px;
  height: 100%;
  left: 33.3333%;
  top: 0;
  width: 33.3333%;
}

/* Center cross for cropping */
.cropper-center {
  display: block;
  height: 0;
  left: 50%;
  opacity: 0.75;
  position: absolute;
  top: 50%;
  width: 0;
}

.cropper-center:before,
.cropper-center:after {
  background-color: #39f;
  content: " ";
  display: block;
  position: absolute;
}

.cropper-center:before {
  height: 1px;
  left: -3px;
  top: 0;
  width: 7px;
}

.cropper-center:after {
  height: 7px;
  left: 0;
  top: -3px;
  width: 1px;
}

/* Face and resizing lines with sharper transitions */
.cropper-face,
.cropper-line,
.cropper-point {
  display: block;
  height: 100%;
  opacity: 0.1;
  position: absolute;
  width: 100%;
}

.cropper-face {
  background-color: rgba(255, 255, 255, 0.6);
  left: 0;
  top: 0;
}

.cropper-line {
  background-color: #39f;
  transition: background-color 0.3s ease;
}

.cropper-line.line-e {
  cursor: ew-resize;
  right: -3px;
  top: 0;
  width: 5px;
}

.cropper-line.line-n {
  cursor: ns-resize;
  height: 5px;
  left: 0;
  top: -3px;
}

.cropper-line.line-w {
  cursor: ew-resize;
  left: -3px;
  top: 0;
  width: 5px;
}

.cropper-line.line-s {
  bottom: -3px;
  cursor: ns-resize;
  height: 5px;
  left: 0;
}

/* Points for resizing with sharper visuals */
.cropper-point {
  background-color: #39f;
  height: 12px;
  opacity: 0.9;
  width: 12px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cropper-point:hover {
  background-color: #ff5722;
  transform: scale(1.2);
}

.cropper-point.point-e {
  cursor: ew-resize;
  margin-top: -6px;
  right: -6px;
  top: 50%;
}

.cropper-point.point-n {
  cursor: ns-resize;
  left: 50%;
  margin-left: -6px;
  top: -6px;
}

.cropper-point.point-w {
  cursor: ew-resize;
  left: -6px;
  margin-top: -6px;
  top: 50%;
}

.cropper-point.point-s {
  bottom: -6px;
  cursor: ns-resize;
  left: 50%;
  margin-left: -6px;
}

.cropper-point.point-ne {
  cursor: nesw-resize;
  right: -6px;
  top: -6px;
}

.cropper-point.point-nw {
  cursor: nwse-resize;
  left: -6px;
  top: -6px;
}

.cropper-point.point-sw {
  bottom: -6px;
  cursor: nesw-resize;
  left: -6px;
}

.cropper-point.point-se {
  bottom: -6px;
  cursor: nwse-resize;
  height: 18px;
  opacity: 1;
  right: -6px;
  width: 18px;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .cropper-point.point-se {
    height: 14px;
    width: 14px;
  }
}

@media (min-width: 992px) {
  .cropper-point.point-se {
    height: 12px;
    width: 12px;
  }
}

@media (min-width: 1200px) {
  .cropper-point.point-se {
    height: 10px;
    opacity: 0.75;
    width: 10px;
  }
}

/* Invisible elements */
.cropper-invisible {
  opacity: 0;
}

/* Background image for the cropper */
.cropper-bg {
  background-image: url("data:image/png;base64,...");
  background-size: cover;
  background-position: center;
}

/* Hide elements when needed */
.cropper-hide {
  display: block;
  height: 0;
  position: absolute;
  width: 0;
}

.cropper-hidden {
  display: none !important;
}

/* Move cursor for drag area */
.cropper-move {
  cursor: move;
}

/* Crosshair cursor for cropping */
.cropper-crop {
  cursor: crosshair;
}

/* Disabled state for cropping */
.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
  cursor: not-allowed;
  opacity: 0.5;
}
