/* 记账App 样式 — 从 extras.css 拆分 */
/* --- 【全新】记账App样式 --- */
#bookkeeping-dashboard-container {
    background-color: #f7f8fa;
}
.bookkeeping-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.budget-progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}
.budget-progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}
.budget-progress-fill.over-budget {
    background-color: #e53935;
}

.transaction-list .list-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-text);
    margin-top: 20px;
    margin-bottom: 10px;
}
.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.transaction-item:last-child {
    border-bottom: none;
}
.transaction-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 12px;
}
.transaction-item .details {
    flex-grow: 1;
}
.transaction-item .details .category {
    font-weight: 500;
}
.transaction-item .details .notes {
    font-size: 13px;
    color: var(--secondary-text);
}
.transaction-item .amount {
    font-weight: 600;
}
.transaction-item .amount.expense {
    color: #333;
}
.transaction-item .amount.income {
    color: #28a745;
}

/* 账单详情页（收据样式） */
.receipt-container {
    background-color: #fff;
    padding: 20px;
    border: 2px dashed #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
    font-family: 'Courier New', Courier, monospace; /* 使用等宽字体，更像收据 */
}
.receipt-scalloped-edge {
    position: absolute;
    left: 0;
    width: 100%;
    height: 12px;
    background-size: 24px 100%;
}
.receipt-scalloped-edge.top {
    top: -12px;
    background-image: radial-gradient(circle at 12px 12px, transparent 8px, #fff 8px);
}
.receipt-scalloped-edge.bottom {
    bottom: -12px;
    background-image: radial-gradient(circle at 12px 0px, transparent 8px, #fff 8px);
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #eee;
}
.receipt-header .icon-selector {
    width: 48px;
    height: 48px;
    background: #f0f2f5;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.receipt-header .amount-input-wrapper {
    flex-grow: 1;
}
.receipt-header .amount-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
}
.receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 1px solid #f0f0f0;
}
.receipt-line label {
    color: #666;
}
.receipt-line .receipt-value {
    font-weight: 500;
    cursor: pointer; /* 提示可以点击 */
    text-align: right;
}
.receipt-line input { /* 用于备注行的输入框 */
    border: none;
    outline: none;
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    width: 60%;
}
.add-photo-box {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: #ccc;
    font-weight: 100;
    cursor: pointer;
}
.entry-type-toggle {
    display: flex;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}
.entry-type-toggle button {
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.entry-type-toggle button.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: bold;
}
/* ▼▼▼ 在这里添加新样式 ▼▼▼ */
/* 愿望单 (To-do List) 样式 */
.todo-list-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}
.todo-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.todo-item:last-child {
    border-bottom: none;
}
.todo-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}
.todo-item label {
    flex-grow: 1;
    color: var(--primary-text);
    margin-bottom: 0; /* 覆盖 form-group 的 label 样式 */
    transition: color 0.3s;
}
.todo-item label.completed {
    text-decoration: line-through;
    color: var(--secondary-text);
}
.delete-todo-btn {
    background: none;
    border: none;
    color: #e53935;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0 5px;
}
.delete-todo-btn:hover {
    opacity: 1;
}
.add-todo-form {
    display: flex;
    gap: 10px;
}
.add-todo-form input {
    flex-grow: 1;
}
.add-todo-form button {
    flex-shrink: 0;
    width: 80px;
    margin-top: 0 !important;
}
/* ▼▼▼ 在这里添加新样式 ▼▼▼ */
/* AI 记账评论样式 (便签条) */
.ai-comment-sticky-note {
    background-color: #fefabc; /* 温暖的米黄色 */
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    transform: rotate(-2deg); /* 轻轻旋转一点 */
    font-family: 'Caveat', cursive; /* 使用可爱的手写体 */
    position: relative;
    border: 1px solid #f9f68d;
    margin: 30px 10px 10px 10px;
}
/* 用伪元素模拟胶带 */
.ai-comment-sticky-note::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    width: 90px;
    height: 25px;
    background: rgba(255, 219, 137, 0.5); /* 半透明胶带效果 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
}
.sticky-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 8px;
    font-family: 'Inter', sans-serif; /* 头部用回正常字体，保持清晰 */
    font-weight: 500;
    color: #8c7f21;
}
.sticky-note-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.sticky-note-content {
    font-size: 16px;
    line-height: 1.7;
    color: #6d5b00; /* 深棕色字体 */
    margin: 0;
    white-space: pre-wrap; /* 尊重AI回复的换行 */
