/* ============================================================================
   專案名稱: IRVault - 管理代幣列表專屬樣式表 (tokens-page.css)
   視覺規範: Cyberpunk / Modern Dark | 滿版順滑滾動 (類似 vault.html) 與底部吸附確定按鈕
   基底樣式: 繼承自 css/vault.css
   ============================================================================ */

/* 🌟 全螢幕視窗鎖定，交由內部 main 容器滑動 (與 vault.html 一致) */
body.tokens-app-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 🌟 滿版主滾動容器 (Main Scroll Area) */
.tokens-main-scroll-area {
  flex: 1;
  width: 100%;
  padding-top: 56px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  scrollbar-width: none;
}

.tokens-main-scroll-area::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tokens-app-content-wrapper {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 12px 16px 20px 16px;
}

/* 🌟 頂部說明卡片 */
.tokens-header-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px var(--c-shadow);
}

.tokens-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tokens-header-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tokens-page-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: 0.2px;
}

.tokens-page-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.4;
}

.tokens-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-line);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 快速批次操作按鈕 */
.tokens-quick-actions {
  display: flex;
  gap: 8px;
}

.tokens-action-pill {
  flex: 1;
  padding: 7px 12px;
  background: var(--c-fill);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tokens-action-pill:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent);
}

.tokens-action-pill:active {
  transform: scale(0.97);
}

/* 🌟 代幣卡片清單區塊 */
.tokens-list-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-manage-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-manage-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.token-manage-item:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-strong);
}

.token-manage-symbol-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.token-manage-symbol {
  font-weight: 800;
  color: var(--c-text);
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-manage-chain-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-line);
  font-weight: 700;
  flex-shrink: 0;
}

/* 🌟 現代 iOS / Cyberpunk 切換開關 (Toggle Switch) */
.token-toggle-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.token-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--c-surface-2);
  border: 1px solid var(--c-border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.token-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px var(--c-shadow);
}

.token-manage-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-sub);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
}

/* 🌟 底部滾動緩衝墊片 */
.tokens-bottom-spacer {
  height: 100px;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}
