﻿.tf2__card {
  background: #fff;
  border: 1px solid #c3c6d7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.tf2__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.tf2__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #eef0fa;
  border-bottom: 1px solid rgba(195, 198, 215, 0.3);
  transition: background 0.15s;
}
.tf2__card-head:hover {
  background: rgb(230.1181818182, 233.0454545455, 247.6818181818);
}
.tf2__card-head i {
  font-size: 30px;
}
.tf2__card-title {
  font-size: 14px;
  font-weight: 700;
  color: #126;
}
.tf2__count {
  font-size: 10px;
  font-weight: 700;
  color: #26377c;
  background: rgba(38, 55, 124, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.tf2__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b6f8a;
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.tf2__action:hover {
  color: #26377c;
  background: rgba(38, 55, 124, 0.06);
}
.tf2__body {
  padding: 14px 16px;
}
.tf2__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.tf2__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 4px;
  position: relative;
  transition: background 0.12s, border-color 0.15s;
}
.tf2__file::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #26377c;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tf2__file:hover {
  background: rgb(238.8, 241.5, 255);
  border-left-color: rgba(38, 55, 124, 0.4);
}
.tf2__file:hover::after {
  transform: scaleX(1);
}
.tf2__file:last-child {
  margin-bottom: 0;
}
.tf2__file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(38, 55, 124, 0.06);
  border-radius: 8px;
  flex-shrink: 0;
}
.tf2__file-icon i {
  font-size: 40px !important;
  color: #26377c;
}
.tf2__file-info {
  flex: 1;
  min-width: 0;
}
.tf2__file-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3a3f54;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.tf2__file-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #6b6f8a;
  line-height: 1.3;
}
.tf2__file-meta span {
  white-space: nowrap;
}
.tf2__file-llm-desc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6b6f8a;
  font-style: italic;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tf2__file-llm-desc i {
  font-size: 12px !important;
  flex-shrink: 0;
}
.tf2__file-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.tf2__file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b6f8a;
  font-size: 22px;
  transition: color 0.15s, background 0.15s;
}
.tf2__file-btn i {
  font-size: 40px !important;
}
.tf2__file-btn:hover {
  color: #26377c;
  background: rgba(38, 55, 124, 0.06);
}
.tf2__file-btn--del:hover {
  color: #ed1c24;
  background: rgba(237, 28, 36, 0.06);
}
.tf2__file-btn--llm-on {
  color: #00a651;
}
.tf2__file-btn--llm-on:hover {
  color: rgb(0, 115, 56.1144578313);
  background: rgba(0, 166, 81, 0.06);
}
.tf2__file-btn--llm-off {
  color: #6b6f8a;
  opacity: 0.5;
}
.tf2__file-btn--llm-off:hover {
  opacity: 1;
  color: #6b6f8a;
  background: rgba(107, 111, 138, 0.06);
}
.tf2__edit-input, .tf2__edit-textarea {
  display: block;
  width: 100%;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(195, 198, 215, 0.5);
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}
.tf2__edit-input:focus, .tf2__edit-textarea:focus {
  outline: none;
  border-color: #26377c;
  box-shadow: 0 0 0 2px rgba(38, 55, 124, 0.12);
}
.tf2__edit-input {
  margin-bottom: 4px;
  font-weight: 600;
}
.tf2__edit-textarea {
  min-height: 36px;
  margin-bottom: 4px;
}
.tf2__edit-actions {
  display: flex;
  gap: 4px;
}
.tf2__edit-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.tf2__edit-btn--save {
  background: #26377c;
  color: #fff;
}
.tf2__edit-btn--save:hover {
  background: rgb(28.4296296296, 41.1481481481, 92.7703703704);
}
.tf2__edit-btn--cancel {
  background: rgba(107, 111, 138, 0.1);
  color: #6b6f8a;
}
.tf2__edit-btn--cancel:hover {
  background: rgba(107, 111, 138, 0.2);
}
.tf2__empty {
  font-size: 12px;
  color: #6b6f8a;
  text-align: center;
  padding: 12px 0;
  margin: 0 0 14px;
}
.tf2__drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px dashed rgba(38, 55, 124, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.tf2__drop--hover, .tf2__drop:hover {
  border-color: rgba(38, 55, 124, 0.5);
  background: rgba(38, 55, 124, 0.03);
}
.tf2__drop--hover .tf2__drop-btn, .tf2__drop:hover .tf2__drop-btn {
  background: rgb(0, 140.5, 68.5572289157);
}
.tf2__drop-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(38, 55, 124, 0.08);
  border-radius: 8px;
  pointer-events: none;
}
.tf2__drop-icon-box i {
  font-size: 22px !important;
  color: #26377c;
}
.tf2__drop-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  pointer-events: none;
}
.tf2__drop-title {
  font-size: 13px;
  font-weight: 600;
  color: #080f30;
  white-space: nowrap;
}
.tf2__drop-sub {
  font-size: 11px;
  color: #6b6f8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tf2__drop-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  background: #00a651;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  pointer-events: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.tf2__drop-input {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  cursor: pointer;
}
.tf2__pending {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tf2__pending-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 12px;
  background: rgba(38, 55, 124, 0.06);
  border: 1px solid rgba(38, 55, 124, 0.12);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #26377c;
}
.tf2__pending-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tf2__pending-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(38, 55, 124, 0.12);
  color: #26377c;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.tf2__pending-del:hover {
  background: rgba(38, 55, 124, 0.25);
}
