
.quick-links-wrapper {
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
}

.quick-links {
  display: flex;
  gap: 16px;
  touch-action: pan-x;
}

.icon-card {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1); 
}

.icon-card img {
  width: 26px;
  height: 26px;
}

.icon-card:hover {
  transform: translateY(-3px);
}

.add-card {
  font-size: 26px;
  background: #f1f5f9;
  color: #475569;
}





.quick-links-wrapper {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.quick-links {
  display: flex;
  flex-wrap: wrap; /* Allows icons to wrap on mobile */
  gap: 12px;      /* Spacing between icons */
  justify-content: center;
  max-width: 100%;
}

/* .icon-card {
  width: 60px;     */
  /* Fixed size for icons */
  /* height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease; */
  
  /* Thin border requirement */
  /* border: 1px solid rgba(0, 0, 0, 0.1);  */
  
  /* Prevent images from overflowing */
  /* overflow: hidden; 
  padding: 10px;
} */

/* .icon-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

.icon-card:hover {
  transform: scale(1.05);
}

/* Mobile Specific Tweaks */
@media (max-width: 480px) {
  .quick-links {
    gap: 8px; /* Tighter gap on small screens */
  }
  
  .icon-card {
    width: 50px; /* Slightly smaller for very narrow screens */
    height: 50px;
  }
}




/* Chrome-style Remove Button */
.remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #f1f1f1;
  color: #d93025;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Show X on hover of the wrapper */
.icon-wrapper:hover .remove-btn {
  display: flex;
}

.remove-btn:hover {
  background: #e0e0e0;
  color: #d93025; /* Chrome Red */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  /* .icon-card {
    width: 54px;
    height: 54px;
  } */
  
  /* On mobile, keep the X visible since there's no "hover" */
  .remove-btn {
    display: flex; 
    width: 18px;
    height: 18px;
  }
}

.icon-wrapper {
  position: relative; /* Essential for positioning the X */
}



.icon-wrapper {
  position: relative;
  display: inline-block;
  /* Prevent default mobile long-press menus from popping up */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.icon-card {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1); /* Your thin border */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #ff4d4f; /* Red for deletion */
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Desktop Hover */
@media (hover: hover) {
  .icon-wrapper:hover .remove-btn {
    display: flex;
  }
}

/* Mobile Long-Press State */
.remove-btn.show-mobile {
  display: flex;
  animation: shake 0.3s infinite; /* Optional: adds a "wiggle" like iPhone apps */
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 480px) {
  .icon-card {
    width: 55px;
    height: 55px;
  }
}