@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");



.container-image-editor {
  display: flex;
  padding: 80px 10px;
  align-items: center;
  justify-content: center;
  background: #ffebc4;
  border-radius: 10px;
}
.containerr {
  max-width: 850px;
  width: 100%;
  padding: 30px 35px 35px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.containerr.disable .editor-panel,
.containerr.disable .controls .reset-filter,
.containerr.disable .controls .save-img ,
.containerr.disable .controls #crop-image {
  opacity: 0.5;
  pointer-events: none;
}
.containerr h2 {
  margin-top: -8px;
  font-size: 22px;
  font-weight: 500;
}
.containerr .wrapper {
  display: flex;
  margin: 20px 0;
  min-height: 335px;
}
.wrapper .editor-panel {
  padding: 15px 20px;
  width: 280px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.editor-panel .title {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
.editor-panel .options,
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.editor-panel button {
  outline: none;
  height: 40px;
  font-size: 14px;
  color: #857c6b;
  background: #fff;
  border-radius: 3px;
  margin-bottom: 8px;
  border: 1px solid #aaa;
}
.editor-panel .filter button {
  width: calc(100% / 2 - 4px);
}
.editor-panel button:hover {
  background: #f5f5f5;
}
.filter button.active {
  color: #fff;
  border-color: #de9406;
  background: #de9406;
}
.filter .slider {
  margin-top: 12px;
}
.filter .slider .filter-info {
  display: flex;
  color: #464646;
  font-size: 14px;
  justify-content: space-between;
}
.filter .slider input {
  width: 100%;
  height: 5px;
  accent-color: #de9406;
}
.editor-panel .rotate {
  margin-top: 17px;
}
.editor-panel .rotate button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / 4 - 3px);
}
.rotate .options button:nth-child(3),
.rotate .options button:nth-child(4) {
  font-size: 18px;
}
.rotate .options button:active {
  color: #fff;
  background: #de9406;
  border-color: #de9406;
}
.wrapper .preview-img {
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  margin-left: 20px;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
}
.preview-img img {
  max-width: 490px;
  max-height: 335px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.controls button {
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 3px;
  outline: none;
  color: #fff;
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.controls .reset-filter {
  color: #665f53;
  border: 1px solid #948c7e;
}
.controls .reset-filter:hover {
  color: #fff;
  background: #807869;
}
.controls .choose-img {
  background: #de9406;
  border: 1px solid #de9406;
}
.controls .save-img {
  margin-left: 5px;
  background: #de9406;
  border: 1px solid #de9406;
}

@media screen and (max-width: 760px) {
  .containerr {
    padding: 25px;
  }
  .containerr .wrapper {
    flex-wrap: wrap-reverse;
  }
  .wrapper .editor-panel {
    width: 100%;
  }
  .wrapper .preview-img {
    width: 100%;
    margin: 0 0 15px;
  }
}

@media screen and (max-width: 500px) {
  .controls button {
    width: 100%;
    margin-bottom: 10px;
  }
  .controls .roww {
    width: 100%;
  }
  .controls .roww .save-img {
    margin-left: 0px;
  }
}

#cropperModal {
  transition: opacity 0.3s ease;
}
#cropperModal.hide {
  opacity: 0;
  pointer-events: none;
}
#crop-image {
  background: #de9406;
  color: #fff;
  border: 1px solid #de9406;
}
#crop-image:hover {
  background: #c67e04;
  border-color: #c67e04;
}

#cropperModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: auto;
}

.cropper-container-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  max-width: 95vw;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cropper-inner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cropperPreview {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.cropper-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

#applyCrop {
  background: #de9406;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

#cancelCrop {
  background: white;
  border: 1px solid #999;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

/* Mobile-specific improvements */
@media (max-width: 600px) {
  #cropperPreview {
    max-height: 50vh;
  }

  .cropper-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #applyCrop,
  #cancelCrop {
    width: 100%;
  }
}
