.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.title-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.title-badge span:first-child {
  font-size: 1rem;
}

.title-badge-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f0f0f0;
  color: #999;
  border: 2px dashed #ccc;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.title-badge-empty:hover {
  background: #e8e8e8;
  border-color: #bbb;
}

.title-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.title-selection-modal .backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.title-selection-modal .modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.title-selection-modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

.title-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.title-list label:hover {
  border-color: #ff6b35;
  background: #fff8f5;
  transform: translateX(4px);
}

.title-list label.active {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #fff8f5 0%, #ffe8df 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.title-list label.locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

.title-list label.locked:hover {
  border-color: #e0e0e0;
  background: #f9f9f9;
  transform: none;
}

.title-list input[type='radio'] {
  width: 20px;
  height: 20px;
  accent-color: #ff6b35;
  cursor: pointer;
}

.title-list label.locked input[type='radio'] {
  cursor: not-allowed;
}

.title-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
}

.title-list label.active .title-icon {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
}

.title-text {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.title-list label.locked .title-text {
  color: #999;
}

.lock-icon {
  margin-left: auto;
  font-size: 1.2rem;
  color: #999;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.modal-actions button {
  padding: 12px 32px;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-actions button:first-child {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.modal-actions button:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.modal-actions button:last-child {
  background: #f0f0f0;
  color: #666;
}

.modal-actions button:last-child:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .title-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .title-badge span:first-child {
    font-size: 0.9rem;
  }

  .title-badge-empty {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .title-selection-modal .modal-content {
    padding: 24px;
    max-width: 100%;
    width: 95%;
  }

  .title-selection-modal h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .title-list label {
    padding: 12px;
  }

  .title-icon {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
  }

  .title-text {
    font-size: 0.9rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .modal-actions button {
    width: 100%;
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  .title-selection-modal .modal-content {
    padding: 20px 16px;
  }

  .title-selection-modal h3 {
    font-size: 1.2rem;
  }

  .title-list label {
    padding: 10px;
    gap: 8px;
  }

  .title-content {
    gap: 8px;
  }

  .title-icon {
    font-size: 1rem;
    width: 24px;
    height: 24px;
  }

  .title-text {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-badge,
  .title-badge-empty,
  .title-selection-modal,
  .title-selection-modal .modal-content,
  .title-list label {
    animation: none !important;
    transition: none !important;
  }
}
