/* Chart Page Styles */

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--bg-primary, #0d1117);
  overflow: hidden;
}

/* ========== 网站 Header（精简版 - 只保留网站功能） ========== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-secondary, #161b22);
  border-bottom: 1px solid var(--border-color, #30363d);
  height: 50px;
  flex-shrink: 0;
}

.site-header-left {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 16px;
  font-weight: 600;
  color: #FF2D78;
  margin: 0;
  text-shadow: 0 0 8px rgba(255,45,120,0.6), 0 0 16px rgba(255,45,120,0.3);
  letter-spacing: 1px;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  padding: 6px 16px;
  background: var(--bg-tertiary, #21262d);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 6px;
  color: var(--text-primary, #c9d1d9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.header-btn:hover {
  background: var(--bg-hover, rgba(110, 118, 129, 0.1));
  border-color: var(--primary-color, #1890ff);
}

.header-btn-primary {
  background: var(--primary-color, #1890ff);
  border-color: var(--primary-color, #1890ff);
  color: white;
}

.header-btn-primary:hover {
  opacity: 0.9;
}

/* ⭐ 余额按钮样式（重新设计） */
.balance-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-primary, #0d1117);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 8px;
  color: var(--text-primary, #c9d1d9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.balance-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.balance-btn:hover {
  background: var(--bg-secondary, #161b22);
  border-color: var(--accent-primary, #58a6ff);
  color: var(--accent-primary, #58a6ff);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
  box-shadow: 0 0 10px rgba(255,45,120,0.4) !important;
}

.balance-btn:hover::before {
  left: 100%;
}

.balance-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-secondary, #8b949e);
  transition: color 0.2s ease;
}

.balance-btn:hover .balance-icon {
  color: var(--accent-primary, #58a6ff);
}

.balance-label {
  color: var(--text-secondary, #8b949e);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.balance-btn:hover .balance-label {
  color: var(--text-primary, #c9d1d9);
}

.balance-amount {
  color: var(--text-primary, #c9d1d9);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.balance-btn:hover .balance-amount {
  color: var(--accent-primary, #58a6ff);
}

/* ========== Main Content Area ========== */
.main-content {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.chart-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

#chart-app {
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 12px;
  }
  
  .site-title {
    font-size: 14px;
  }
  
  .header-btn {
    padding: 4px 12px;
    font-size: 12px;
  }
  
  .balance-btn {
    padding: 6px 10px;
    gap: 6px;
  }
  
  .balance-icon {
    width: 14px;
    height: 14px;
  }
  
  .balance-label {
    font-size: 11px;
  }
  
  .balance-amount {
    font-size: 12px;
  }
}

