/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Modal Content */
.modal-content {
  position: relative;
  background: #2f2631;
  color: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  padding: 0;
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.75rem;
  border: 2px solid transparent;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.5s;
}
.modal-close:hover {
  border-color: transparent;
}

/* Modal Inner Content */
.modal-inner {
  padding: 2rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 20px;
}

/* Badge Container */
.badge-container {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  border-radius: 9999px;
  white-space: nowrap;
  /* Приклад кольорів – змініть за потребою */
  color: #ccc;
  border-color: #ccc;
  background-color: rgba(204, 204, 204, 0.05);
}

/* Roles Grid */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
@media (max-width: 640px) {
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Role Item */
.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: border-color 0.5s;
}
.role-item:hover {
  border-color: #ff4081;
}
.role-item.active {
  border-color: #ff4081;
  background: rgba(255, 64, 129, 0.1);
}

/* React Select Container (спрощено) */
.react-select-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.react-select__control {
  display: flex;
  align-items: center;
  background: #3d3241;
  border: 1px solid #66537a;
  border-radius: 4px;
  padding: 0.5rem;
}
.react-select__value-container {
  flex: 1;
  display: flex;
  align-items: center;
  color: #fff;
}
.react-select__input {
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  margin-left: 0.5rem;
}
.react-select__indicators {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.react-select__indicator-separator {
  width: 1px;
  height: 24px;
  background: #999;
}
.react-select__dropdown-indicator {
  cursor: pointer;
}

/* Save Selection Button */
.save-selection-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 9999px;
  padding: 10px 28px;
  margin-top: 1rem;
  background: linear-gradient(90deg, #ff4081, #f87350);
  color: #fff;
  transition: opacity 0.3s;
}
.save-selection-btn:hover {
  opacity: 0.9;
}
