#controlWrapper{
  display: none;
  opacity: 0;
  visibility: hidden !important;
}

/* Custom Tooltip Styles */
.custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.custom-tooltip.bottom::after {
  top: -10px;
  border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

/* Custom Image Comment Styles */
.custom-image-comment {
  font-size: 12px;
  color: #666;
  font-style: italic;
  line-height: 1.4;
  padding: 6px 8px;
  background-color: #f8f9fa;
  border-left: 3px solid #007cba;
  border-radius: 0 4px 4px 0;
  margin: 20px;
  margin-left: 0;
}

/* Drag & Drop File Upload Styles */
.drag-drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-drop-area:hover,
.drag-drop-area.drag-over {
    border-color: #007cba;
    background: #f0f8ff;
}

.drag-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drag-drop-icon {
    font-size: 32px;
    opacity: 0.6;
}

.drag-drop-text {
    text-align: center;
}

.drag-drop-primary {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.drag-drop-secondary {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: #666;
}

.drag-drop-info {
    font-size: 12px;
    margin: 0;
    color: #999;
    font-style: italic;
}

.uploaded-image-preview {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.preview-image-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 10px;
}

.preview-image-container:hover .preview-edit-overlay {
    opacity: 1;
}

.uploaded-image-preview img {
    max-width: 300px;
    max-height: 100px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.preview-image-container:hover img {
    opacity: 0.8;
}

.preview-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 124, 186, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.preview-edit-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.preview-actions {
    margin-top: 15px;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.crop-modal {
    width: 900px;
    /* height: 700px; */
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

/* Crop Container Styles */
.crop-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    height: 500px;
}

#cropCanvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crop-selection {
    position: absolute;
    border: 2px solid #007cba;
    background: rgba(0, 124, 186, 0.1);
    cursor: move;
    pointer-events: all;
    min-width: 50px;
    min-height: 50px;
}

.crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #007cba;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: all;
}

.crop-handle-nw { top: -6px; left: -6px; cursor: nw-resize; }
.crop-handle-ne { top: -6px; right: -6px; cursor: ne-resize; }
.crop-handle-sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.crop-handle-se { bottom: -6px; right: -6px; cursor: se-resize; }
.crop-handle-n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.crop-handle-s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.crop-handle-e { top: 50%; right: -6px; transform: translateY(-50%); cursor: e-resize; }
.crop-handle-w { top: 50%; left: -6px; transform: translateY(-50%); cursor: w-resize; }

.crop-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.crop-info p {
    margin: 5px 0;
}

/* Button Styles */
.button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.button.primary {
    background: #007cba;
    color: white;
}

.button.primary:hover {
    background: #005a87;
}

.button.secondary {
    background: #6c757d;
    color: white;
}

.button.secondary:hover {
    background: #545b62;
}