/**
 * Indicator Modal Styles
 */

/* Modal Container */
.indicator-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 移除动画 */
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* ⭐ 让点击穿透遮罩层 */
  /* 移除背景色和模糊效果 */
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  /* 移除动画 */
}

/* 移除动画关键帧 */

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color-light, #21262d);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary, #d1d4dc);
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary, #8b949e);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-tertiary, #21262d);
  color: var(--text-primary, #d1d4dc);
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Indicator Categories */
.indicator-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color-light, #21262d);
}

.category-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-color, #30363d);
  border-radius: 6px;
  color: var(--text-secondary, #8b949e);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  border-color: var(--accent-primary, #58a6ff);
  color: var(--accent-primary, #58a6ff);
  background: rgba(88, 166, 255, 0.1);
}

.category-btn.active {
  border-color: var(--accent-primary, #58a6ff);
  color: #ffffff;
  background: var(--accent-primary, #58a6ff);
}

/* Indicators Grid */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

/* Indicator Card */
.indicator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-primary, #0d1117);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.indicator-card:hover {
  border-color: var(--accent-primary, #58a6ff);
  background: var(--bg-secondary, #161b22);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.indicator-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.indicator-info {
  flex: 1;
  min-width: 0;
}

.indicator-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #d1d4dc);
  margin-bottom: 4px;
}

.indicator-short {
  font-size: 12px;
  color: var(--text-secondary, #8b949e);
  margin-bottom: 6px;
}

.indicator-position {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicator-position.main {
  background: rgba(88, 166, 255, 0.2);
  color: var(--accent-primary, #58a6ff);
}

.indicator-position.sub {
  background: rgba(163, 113, 247, 0.2);
  color: var(--accent-secondary, #a371f7);
}

.add-indicator-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: #238636;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.add-indicator-btn:hover {
  background: #2ea043;
  transform: scale(1.1);
}

.add-indicator-btn:active {
  transform: scale(0.95);
}

/* Indicator Notification */
.indicator-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 12px 20px;
  background: #238636;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Scrollbar */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--bg-primary, #0d1117);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color, #30363d);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .indicators-grid {
    grid-template-columns: 1fr;
  }

  .indicator-categories {
    flex-wrap: wrap;
  }
}

