/* START OF FILE image-crop.css */
.image-cropper-body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  /*padding: 20px;*/
  margin-top: 50px;
  background-color: #f0f2f5;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  overflow-x: hidden;
}
#appTitle {
  color: #333;
  text-align: center;
}
.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}
.ic-button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  margin: 5px;
}
.ic-button:hover:not(:disabled) {
  background-color: #0056b3;
}
.ic-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.main-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.controls-panel {
  flex: 1;
  min-width: 280px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #f9f9f9;
}
.image-display-panel {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.control-group {
  margin-bottom: 15px;
}
.control-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9em;
}
.control-group select {
  width: calc(100% - 10px);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  margin-bottom: 5px;
}

#imageUpload {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.cropper-point {
  background-color: white !important;
  border: 2px solid rgba(0, 0, 0, 0.6) !important;
  width: 24px !important; height: 24px !important;
}
/* Estilo específico para cada ponto */
.cropper-point.point-se {
  right: -12px !important;
  bottom: -12px !important;
}
.cropper-point.point-sw {
  left: -12px !important;
  bottom: -12px !important;
}
.cropper-point.point-nw {
  left: -12px !important;
  top: -12px !important;
}
.cropper-point.point-ne {
  right: -12px !important;
  top: -12px !important;
}
/* Pontos cardeais (norte, sul, leste, oeste) */
.cropper-point.point-e {
  top: 50% !important;
  right: -12px !important;
  margin-top: -12px !important;
  cursor: e-resize !important;
}
.cropper-point.point-w {
  top: 50% !important;
  left: -12px !important;
  margin-top: -12px !important;
  cursor: w-resize !important;
}
.cropper-point.point-n {
  top: -12px !important;
  left: 50% !important;
  margin-left: -12px !important;
  cursor: n-resize !important;
}
.cropper-point.point-s {
  bottom: -12px !important;
  left: 50% !important;
  margin-left: -12px !important;
  cursor: s-resize !important;
}


#cropperImageContainer {
  position: relative;
  width: 100%;
  min-height: 200px;
  max-height: 450px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
#cropperImageContainer img {
  display: block;
  max-width: 100%;
  max-height: 450px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#resultPreviewContainer {
  text-align: center;
}
#resultPreviewImage {
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

#status {
  margin-top: 15px;
  text-align: center;
  color: #666;
  min-height: 20px;
}
.action-buttons {
  text-align: center;
  margin-top: 10px;
}
.aspect-ratio-buttons button {
  margin: 2px;
  font-size: 0.8em;
  padding: 5px 8px;
}

@media (max-width: 768px) {
  .main-layout { flex-direction: column; }
  .controls-panel, .image-display-panel { min-width: 100%; }
}
/* END OF FILE image-crop.css */
