@import url('https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.13/cropper.min.css');

.cropper-modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 32, 38, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  animation: fadeInBg 0.2s;
}

@keyframes fadeInBg {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.cropper-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 2em 1.5em 1.5em 1.5em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  max-width: 98vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInModal 0.25s;
}

@keyframes fadeInModal {
  from {
    transform: scale(0.97);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cropper-modal-content img {
  max-width: 80vw;
  max-height: 60vh;
  display: block;
  margin-bottom: 1.2em;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.cropper-modal-content button {
  margin: 0 0.18em;
  padding: 0.18em 0.7em;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  background: #f8fafb;
  color: #222;
  font-weight: 400;
  font-size: 0.93em;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: background 0.15s, border 0.15s;
  cursor: pointer;
  min-width: 0;
}

.cropper-modal-content button:hover {
  background: #e9f5e3;
  border: 1px solid #b7e2b2;
}

.cropper-modal-content button.cancel {
  background: #f8eaea;
  color: #c0392b;
  border: 1px solid #f2c1c1;
  font-weight: 400;
}

.cropper-modal-content button.cancel:hover {
  background: #fbeaea;
  border: 1px solid #e74c3c;
}

.cropper-modal-content .cropper-container {
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .cropper-modal-content img {
    max-width: 96vw;
    max-height: 40vh;
  }

  .cropper-modal-content {
    padding: 1em 0.2em 1em 0.2em;
  }
}