/*
Theme Name: Smart Accounting
Theme URI: https://example.com/smart-accounting
Description: 专业记账WordPress主题，支持收入支出管理、数据分析、预算跟踪。
Version: 1.0.2
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart-accounting
Domain Path: /languages
Tags: accounting, finance, budgeting, responsive, dark-mode, custom-colors, custom-menu, featured-images, translation-ready
*/

/* 预算进度条样式 */
.budget-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.budget-text {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 交易操作按钮 */
.transaction-actions {
    margin-left: 10px;
}

.edit-btn {
    display: inline-block;
    padding: 5px 10px;
    background: #e9ecef;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 危险按钮 */
.danger-btn {
    background: #f72585;
    color: white;
}

.danger-btn:hover {
    background: #d1146a;
}

/* 设置页面样式 */
.settings-form {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.danger-zone {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 40px;
}

.danger-zone h2 {
    color: #c53030;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.danger-zone p {
    color: #742a2a;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .transaction-actions {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .transaction-item {
        flex-wrap: wrap;
    }
}