:root {
  /* Colors - 背景與卡片 */
  --color-bg-primary:       #f8fafc; /* 網頁底色 */
  --color-bg-secondary:     #f1f5f9; /* 區塊層次底色 */
  --color-bg-card:          #ffffff; /* 卡片內部白 */

  /* Colors - 強調色 (Accent) */
  --color-accent-blue:      #3b82f6; /* 主功能操作按鈕、主要標題 */
  --color-accent-blue-dim:  rgba(59,130,246,0.08); /* 小區塊高光、頭像底圖 */
  --color-accent-green:     #10b981; /* 成功、最低匯率、系統連線正常 */
  --color-accent-orange:    #f59e0b; /* 警告或注意數值 */
  --color-accent-red:       #ef4444; /* 刪除、最高匯率、系統錯誤、登出 */

  /* Typography */
  --font-body:              'Inter', 'Noto Sans TC', sans-serif;
  --font-mono:              'JetBrains Mono', monospace; /* 金額數值、版本號、狀態監測專用 */

  /* Sidebar & Layout */
  --sidebar-width: 240px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --glass-border: #e2e8f0;
  --transition-speed: 0.2s;
  
  /* Legacy compatibility (to be phased out) */
  --primary-bg: var(--color-bg-primary);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --base-font-size: 14px;
}

html {
    font-size: var(--base-font-size);
}

.font-small {
    --base-font-size: 12px;
}

.font-medium {
    --base-font-size: 14px;
}

.font-large {
    --base-font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 20px;
    border: 1.5px solid var(--glass-border);
    background: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.05);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-fade {
    animation: fadeIn var(--transition-speed) ease-out forwards;
}

.animate-slide {
    animation: slideIn var(--transition-speed) ease-out forwards;
}
