/* Claude Code 号池监控控制台 - 定制样式 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #070c18;
  --bg-card: #0b1325;
  --bg-card-hover: #101c36;
  --border-color: rgba(56, 189, 248, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #f1f5f9;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --status-active-bg: rgba(16, 185, 129, 0.12);
  --status-active-border: rgba(16, 185, 129, 0.3);
  --status-active-text: #34d399;
  --status-banned-bg: rgba(239, 68, 68, 0.12);
  --status-banned-border: rgba(239, 68, 68, 0.3);
  --status-banned-text: #f87171;
  --status-cooling-bg: rgba(245, 158, 11, 0.12);
  --status-cooling-border: rgba(245, 158, 11, 0.3);
  --status-cooling-text: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* 微弱科技网格背景 */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
}

/* 顶部霓虹光晕 */
.top-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(56, 189, 248, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 状态徽章 */
.badge-active {
  background: var(--status-active-bg);
  border: 1px solid var(--status-active-border);
  color: var(--status-active-text);
}

.badge-banned {
  background: var(--status-banned-bg);
  border: 1px solid var(--status-banned-border);
  color: var(--status-banned-text);
}

.badge-cooling {
  background: var(--status-cooling-bg);
  border: 1px solid var(--status-cooling-border);
  color: var(--status-cooling-text);
}

/* 呼吸灯效果 */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pulse-dot.dot-active {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.pulse-dot.dot-banned {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.pulse-dot.dot-cooling {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulse-warn 1.8s infinite;
}

@keyframes pulse-warn {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* 表格行动态与对齐 */
.pool-row {
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pool-row:hover {
  background-color: var(--bg-card-hover);
}

/* 地区胶囊 */
.region-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background-color: rgba(30, 58, 95, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  letter-spacing: 0.5px;
}

/* 5H 用量 / 7D 进度条与指标槽 */
.usage-track {
  background-color: #232733;
  border-radius: 9999px;
  height: 5px;
  width: 110px;
  overflow: hidden;
  position: relative;
}

.bar-rose {
  background-color: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

.bar-amber {
  background-color: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.bar-emerald {
  background-color: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

.bar-white {
  background-color: #ffffff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* 进度条样式 */
.h5-progress-bg {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  height: 5px;
}

.h5-progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.progress-safe {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.progress-warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.progress-danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #080d1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* Purefast 侧边栏与布局样式 */
.purefast-sidebar {
  background-color: #070d1a;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.purefast-nav-group-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 12px;
  margin-bottom: 6px;
}

.purefast-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.purefast-nav-item:hover {
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.04);
}

.purefast-nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(30, 58, 110, 0.6) 0%, rgba(20, 38, 75, 0.4) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.08);
}

.purefast-nav-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* 角色切换面板弹出层 */
.role-dropdown-popover {
  animation: popover-fade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popover-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 实时日志行闪烁微光 */
.live-log-row {
  animation: log-flash 1s ease-out;
}

@keyframes log-flash {
  from { background-color: rgba(56, 189, 248, 0.12); }
  to { background-color: transparent; }
}
.toast-msg {
  animation: slide-up 0.25s ease-out;
}

/* 登录全屏背景与发光卡片 */
.login-screen {
  background: radial-gradient(circle at 50% 25%, rgba(14, 165, 233, 0.15) 0%, rgba(7, 12, 24, 0.98) 75%), #070c18;
}

.login-card {
  background: rgba(11, 19, 37, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.1);
}

.quick-account-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.6);
  transition: all 0.18s ease;
}

.quick-account-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
