/* 标签管理模态框样式 */

/* 标签管理模态框整体样式 */
#tags-modal {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#tags-modal .modal-content {
  max-width: 600px;
  width: 92%;
  margin: 30px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #fff;
  border: none;
}

/* 模态框标题栏 */
#tags-modal .modal-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#tags-modal .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
}

/* 顶部关闭按钮样式 */
#tags-modal .modal-header .close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0;
  position: relative;
}

#tags-modal .modal-header .close-modal::before,
#tags-modal .modal-header .close-modal::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: #666;
  border-radius: 1px;
  transition: background 0.2s;
}

#tags-modal .modal-header .close-modal::before {
  transform: rotate(45deg);
}

#tags-modal .modal-header .close-modal::after {
  transform: rotate(-45deg);
}

#tags-modal .modal-header .close-modal:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

#tags-modal .modal-header .close-modal:hover::before,
#tags-modal .modal-header .close-modal:hover::after {
  background: #333;
}

/* 标签管理主内容 */
#tags-modal .modal-body {
  padding: 20px 24px;
}

/* 标签输入表单 */
#tags-modal .tags-form {
  margin-bottom: 24px;
}

#tags-modal .tags-form .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#tags-modal #tag-name {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  transition: all 0.3s ease;
}

#tags-modal #tag-name:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* 颜色选择器样式 */
#tags-modal .tag-color-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#tags-modal .color-label {
  font-size: 14px;
  color: #555;
}

#tags-modal .color-options {
  display: flex;
  gap: 8px;
}

#tags-modal .color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid transparent;
}

#tags-modal .color-option:hover {
  transform: scale(1.1);
}

#tags-modal .color-option.selected {
  border-color: #555;
  transform: scale(1.15);
}

/* 添加标签按钮 */
#tags-modal #add-tag-btn {
  padding: 10px 16px;
  background: #4361ee;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#tags-modal #add-tag-btn:hover {
  background: #3a56d4;
  transform: translateY(-1px);
}

/* 现有标签列表 */
#tags-modal .tags-list-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
}

#tags-modal .tags-management-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 8px;
  background: #f8f9fa;
}

#tags-modal .tag-item {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  position: relative;
}

#tags-modal .tag-item .tag-delete {
  margin-left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: inherit;
  opacity: 0.7;
  transition: all 0.2s;
}

#tags-modal .tag-item .tag-delete:hover {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

/* 空标签提示 */
#tags-modal .empty-tags-message {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #adb5bd;
  font-size: 14px;
}

/* 底部区域和按钮 */
#tags-modal .modal-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8f9fa;
}

/* 保存按钮 */
#tags-modal #save-tags-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
}

#tags-modal #save-tags-btn:hover {
  background: linear-gradient(135deg, #3a56d4, #2a46c4);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.4);
}

/* 取消按钮 */
#tags-modal #cancel-tags-btn {
  padding: 10px 24px;
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#tags-modal #cancel-tags-btn:hover {
  background: #e9ecef;
  color: #212529;
}

/* 滚动条美化 */
#tags-modal .tags-management-list::-webkit-scrollbar {
  width: 8px;
}

#tags-modal .tags-management-list::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 4px;
}

#tags-modal .tags-management-list::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

#tags-modal .tags-management-list::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
} 