/* 隐藏滚动条但保留滚动功能 */
body { -webkit-font-smoothing: antialiased; }

/* 导航按钮激活状态 */
.nav-btn.active div:last-child { color: #16a34a; font-weight: 600; }
.nav-btn.active div:first-child { transform: scale(1.15); }

/* 输入框日期选择器适配 */
input[type="month"], input[type="date"] { -webkit-appearance: none; }

/* 交易项动画 */
.txn-item { transition: all 0.2s ease; }
.txn-item:hover { background-color: #f9fafb; }

/* 进度条动画 */
.progress-bar { transition: width 0.6s ease; }

/* 超额警示 */
.over-budget { background-color: #fef2f2 !important; border-color: #fecaca !important; }
.over-budget .goal-label { color: #dc2626 !important; }

/* 分类标签 */
.cat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 12px; }

/* Toast 动画 */
#toast { transition: opacity 0.3s, transform 0.3s; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.hide { opacity: 0; transform: translateX(-50%) translateY(-10px); }

/* 图表容器 */
.chart-container { position: relative; height: 250px; }
