/* Custom character upload section styling */
.custom-characters-section {
  margin-bottom: 2rem;
  background: #2d2d2d;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid #383838;
  position: relative;
}

.custom-characters-section h3 {
  margin: 0 0 1.25rem 0;
  color: #FF9800;
  font-size: 1.2rem;
  border-bottom: 2px solid #383838;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.upload-instructions {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

#upload-character-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(145deg, #FF9800, #F57C00);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

#upload-character-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

#upload-character-btn:active {
  transform: translateY(-1px);
}

#character-file-input {
  display: none;
}

#custom-character-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-height: 350px;
  overflow-y: auto;
  padding: 0.5rem;
  padding-right: 1rem;
}

.empty-characters {
  grid-column: span 3;
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
  border: 2px dashed #444;
  border-radius: 12px;
}

.custom-character-btn {
  position: relative;
}

.delete-custom-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: all 0.2s;
  opacity: 0;
}

.custom-character-btn:hover .delete-custom-btn {
  opacity: 1;
}

.delete-custom-btn:hover {
  background: #d32f2f;
  transform: scale(1.1);
}