/* Prevent horizontal scroll globally */

body, .modal, .modal-dialog, .modal-content, #iconGridContainer, #iconGrid {
  overflow-x: hidden !important;
}

/* Modal layout cleanup */

#chooseProfileIconModal .modal-dialog {
  max-width: 600px;
  margin: auto;
  overflow-x: hidden;
}

#chooseProfileIconModal .modal-content {
  min-height: 550px;
  overflow-x: hidden;
}

/* Grid container scroll only vertical */

#iconGridContainer {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Make sure items inside grid don't overflow */

#iconGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-right: 4px;
}

#iconGrid > .col {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 0;
  word-break: break-word;
}

/* Icon item hover and selection */

.icon-choice:hover .rounded-circle {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease-in-out;
}

.icon-choice.selected .rounded-circle {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #00ffff, 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Animate icon image on click */

.profile-icon.animate__bounceIn {
  animation: bounceIn 0.5s;
}

/* Category Buttons */

#modal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

#iconCategoryButtons button {
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 0.875rem;
}

#iconCategoryButtons button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #0ea5e9;
  color: #0ea5e9;
}

#iconCategoryButtons button.active {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4);
}

/* Profile Card */

.card .verify-digit {
  width: 60px;
  height: 60px;
  font-weight: 600;
  background-color: #334155;
  color: #f1f5f9;
  border: none;
}

.card .verify-digit:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.3);
  background-color: #475569;
}

/* Profile Image Wrapper + Hover Overlay */

.profile-pic-wrapper {
  width: 96px;
  height: 96px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.3s ease;
}

.profile-img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-pic-wrapper:hover .profile-img {
  filter: blur(1px);
}

.profile-pic-wrapper:hover .profile-img-overlay {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}

/* Nav Tabs (Rounded, Consistent Look) */

.nav-tabs .nav-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1 !important;
  background-color: transparent;
  font-weight: 500;
  margin: 0 4px;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
  background-color: #334155;
  color: #ffffff !important;
  border-color: #3b82f6;
}

/* Button Styles */

.profile-card .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f1f5f9;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.profile-card .btn-outline-light:hover {
  background-color: #475569;
  color: #f1f5f9;
}

.profile-card .btn-outline-danger {
  border: 1px solid rgba(220, 38, 38, 0.6);
  color: #f87171;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.profile-card .btn-outline-danger:hover {
  background-color: #b91c1c;
  color: #fff;
}

.profile-card .btn-danger {
  background-color: #dc2626;
  color: #fff;
  font-size: 12px;
  border: none;
  padding: 6px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.profile-card .btn-danger:hover {
  background-color: #b91c1c;
  color: #fff;
}

