/* Enhanced Styles with FontAwesome Icons */

/* FontAwesome图标基础样式 */
.fa, .fas, .far, .fab {
  margin-right: 8px;
}

/* .container 样式已移至 theme-styles.css 统一管理 */

/* 侧边栏美化 */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 面板样式优化 */
.panel {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.panel h3 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.panel h3 i {
  margin-right: 12px;
  color: #3b82f6;
  font-size: 1.1em;
}

/* 数据源信息卡片 */
.data-source-info {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.data-source-info strong {
  color: rgba(255, 255, 255, 0.9);
}

/* 按钮组美化 */
.data-source-area {
  margin-bottom: 24px;
}

.data-source-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.data-source-title i {
  margin-right: 8px;
  color: #6366f1;
}

.control-group {
  margin-bottom: 12px;
}

.control-group button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.control-group button i {
  margin-right: 10px;
  font-size: 1.1em;
}

.control-group button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.control-group button:hover::before {
  left: 100%;
}

/* API按钮样式 */
.btn-api {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-api:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* 上传按钮样式 */
.btn-upload {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-upload:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* 连接状态指示器 */
.connection-status {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 16px;
}

.status-row {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.status-row span:first-child {
  color: #64748b;
  font-weight: 500;
}

.status-row span:first-child i {
  margin-right: 6px;
  width: 16px;
  text-align: center;
}

/* 状态指示样式 */
.status-connected {
  color: #10b981;
  font-weight: 600;
}

.status-disconnected {
  color: #ef4444;
  font-weight: 600;
}

.status-none {
  color: #64748b;
  font-weight: 600;
}

/* 图例美化 */
.legend {
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.5);
  transition: background-color 0.2s;
}

.legend-item:hover {
  background: rgba(241, 245, 249, 0.8);
}

.legend-item span {
  margin-left: 12px;
  font-size: 0.9rem;
  color: #374151;
}

.legend-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1em;
}

/* 图例颜色 */
.legend-item .fa-circle.red { color: #ef4444; }
.legend-item .fa-circle.orange { color: #f59e0b; }
.legend-item .fa-circle.green { color: #10b981; }
.legend-item .fa-minus.red { color: #ef4444; }
.legend-item .fa-minus.green { color: #10b981; }
.legend-item .fa-minus.diagonal { color: #8b5cf6; }
.legend-item .fa-minus.gray { color: #9ca3af; }

/* 使用提示美化 */
.usage-tips {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 4px solid #f59e0b;
}

.usage-tips strong {
  color: #92400e;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.usage-tips strong i {
  margin-right: 8px;
  color: #d97706;
}

.usage-tips br + span,
.usage-tips br + br + span {
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* .main-content 样式已移至 theme-styles.css 统一管理 */

/* 工具栏美化 */
.toolbar {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* 搜索框美化 */
.search-box {
  flex: 1;
  min-width: 280px;
  padding: 14px 20px 14px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.search-box:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.search-box-container {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box-container i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 1;
}

/* 搜索和重置按钮 */
.search-btn, .reset-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.search-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.reset-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.reset-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.search-btn i, .reset-btn i {
  margin-right: 8px;
}

/* 网络图谱区域 */
#network {
  background: #fafbfc;
  min-height: 500px;
  border-radius: 0 0 20px 20px;
}

/* 详情面板美化 */
.node-info, .transaction-details {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  margin: 20px;
}

.node-info h3, .transaction-details h3 {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.node-info h3 i, .transaction-details h3 i {
  margin-right: 12px;
  color: #3b82f6;
}

/* 加载状态美化 */
.loading {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
  color: #64748b;
  font-weight: 500;
}

.loading i {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 表格控制按钮美化 */
.graph-controls .control-group button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.graph-controls .control-group button:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.graph-controls .control-group button i {
  margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    margin: 10px;
    border-radius: 16px;
  }
  
  .main-content {
    margin: 10px;
    border-radius: 16px;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  
  .search-box-container {
    min-width: auto;
    margin-bottom: 12px;
  }
  
  .search-btn, .reset-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
} 