/* Crop Modal - Uses Export Modal structure */
.crop-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  animation: fadeIn 0.3s;
}

.crop-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Force larger width for crop modal */
#cropModal .export-modal-content {
  max-width: 900px;
  width: 95%;
}

/* Crop-specific elements */
.crop-image-container {
  width: 100%;
  max-height: 65vh; /* Larger height (~65% viewport) */
  min-height: 400px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-image-container img {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  object-fit: contain;
}

.crop-controls-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
}

.crop-control-btn {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.crop-control-btn:hover {
  background: #f9fafb;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.crop-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.crop-cancel-btn {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.crop-cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.crop-save-btn {
  background: var(--background-static);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crop-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
