.tools-parent-container .toolbar-items {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
  width: 100%;
}

.tools-parent-container .collage-area {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 76px;
  background: white;
  overflow: hidden;
}

.tools-parent-container .nav-item button {
  background-color: #de9406 !important;
  background-image: none;
  border-width: 0px;
  color: #1e1e1e;
  font-weight: 500;
}

.tools-parent-container .collage-area.grid-tiny {
  background-image: linear-gradient(to right, #e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 5px 5px;
}

.tools-parent-container .collage-area.grid-small {
  background-image: linear-gradient(to right, #e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 10px 10px;
}

.tools-parent-container .collage-area.grid-medium {
  background-image: linear-gradient(to right, #e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
}

.tools-parent-container .collage-area.grid-large {
  background-image: linear-gradient(to right, #e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 40px 40px;
}

.tools-parent-container .collage-area.grid-xlarge {
  background-image: linear-gradient(to right, #e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 60px 60px;
}

.tools-parent-container .collage-area.grid-xxlarge {
  background-image: linear-gradient(to right, #e0e0e0 1px, transparent 1px), linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 80px 80px;
}

.tools-parent-container .collage-area.grid-letter {
  background-image: linear-gradient(to right, #b0b0b0 1px, transparent 1px), linear-gradient(to bottom, #b0b0b0 1px, transparent 1px), linear-gradient(to right, transparent 95px, #e0e0e0 95px, #e0e0e0 96px, transparent 96px, transparent 721px, #e0e0e0 721px, #e0e0e0 722px, transparent 722px), linear-gradient(to bottom, transparent 95px, #e0e0e0 95px, #e0e0e0 96px, transparent 96px, transparent 961px, #e0e0e0 961px, #e0e0e0 962px, transparent 962px);
  background-size: 816px 1056px;
  background-position: center;
}

.tools-parent-container .collage-area.grid-letter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 816px;
  height: 1056px;
  border: 1px #a0a0a0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.tools-parent-container .photo-card {
  position: absolute;
  cursor: move;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  user-select: none;
}

.tools-parent-container .photo-card:hover {
  border-color: #007bff;
}

.tools-parent-container .photo-card.selected {
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.tools-parent-container .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tools-parent-container .resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #007bff;
  border-radius: 2px;
  z-index: 10;
}

.tools-parent-container .resize-handle.nw {
  top: -5px;
  left: -5px;
  cursor: nw-resize;
}

.tools-parent-container .resize-handle.ne {
  top: -5px;
  right: -5px;
  cursor: ne-resize;
}

.tools-parent-container .resize-handle.sw {
  bottom: -5px;
  left: -5px;
  cursor: sw-resize;
}

.tools-parent-container .resize-handle.se {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
}

.tools-parent-container .photo-card.selected .resize-handle {
  background: #ff4444;
}

.tools-parent-container .delete-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: none;
  line-height: 1;
  z-index: 20;
}

.tools-parent-container .photo-card.selected .delete-btn {
  display: block;
}

@media (max-width: 992px) {
  .tools-parent-container .toolbar-items {
    gap: 5px;
  }

  .tools-parent-container .navbar-nav .nav-item {
    margin-bottom: 5px;
  }
}

.tools-parent-container .form-control-color {
  width: 40px !important;
  height: 38px;
}

.tools-parent-container .rotate-handle {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
  font-size: 18px;
  color: #ff5722;
  user-select: none;
}

.tools-parent-container .photo-card.selected .rotate-handle {
  color: #ff4444;
}

.tools-parent-container .photo-card {
  transform-origin: center center;
  /* Add this in CSS */
}

.tools-parent-container .nav-item .upload-btn {
  background-color: #de9406;
  font-size: var(--fs-12-24);
  height: 42px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 1em;
  cursor: pointer;
}