/* ========== 全局样式 ========== */
[v-cloak] { display: none !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f0f2f5;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    overscroll-behavior: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== 暗色模式 ========== */
body.dark-mode { background: #121826; color: #e2e8f0; }
body.dark-mode .card { background: #1e293b; border-color: #334155; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
body.dark-mode .card-title { border-bottom-color: #334155; }
body.dark-mode .form-group input, body.dark-mode .form-group select, body.dark-mode .form-group textarea,
body.dark-mode .debt-table input, body.dark-mode .debt-table select, body.dark-mode .query-bar input, body.dark-mode .query-bar select {
    background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .person-tag { background: #334155; color: #e2e8f0; }
body.dark-mode .person-tag.selected { background: #667eea; }
body.dark-mode .btn-secondary { background: #334155; color: #e2e8f0; }
body.dark-mode .debt-table th { background: #0f172a; color: #94a3b8; }
body.dark-mode .info-text { background: #0f172a; color: #94a3b8; }
body.dark-mode .bottom-nav { background: #1e293b; border-top-color: #334155; }
body.dark-mode .nav-item.active { background: #2d3a5e; color: #a5b4fc; }
body.dark-mode .modal-content { background: #1e293b; color: #e2e8f0; }
body.dark-mode .close { color: #94a3b8; }
body.dark-mode .stat-box { background: rgba(255,255,255,0.1); }
body.dark-mode .user-menu { background: #1e293b; border-color: #334155; }
body.dark-mode .user-menu div { color: #e2e8f0; }
body.dark-mode .user-menu div:hover { background: #334155; }
body.dark-mode .btn-add-row { background: #1e293b; border-color: #475569; color: #a5b4fc; }
body.dark-mode .btn-add-row:hover { background: #2d3a5e; border-color: #818cf8; color: #c7d2fe; }

/* 暗色模式 - 表格合计行 */
body.dark-mode .debt-table .total-row {
    background: #0f172a;
}

body.dark-mode .debt-table .total-row td {
    background: #0f172a;
    color: #e2e8f0;
}

/* 暗色模式 - 只读输入框 */
body.dark-mode input[readonly] {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

/* ========== 价格浮动标记样式 ========== */
.price-badge { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 12px; margin-left: 6px; cursor: pointer; }
.price-badge-up { background: #f5576c; color: white; }
.price-badge-down { background: #52c41a; color: white; }
.price-badge-floating { background: #ff9800; color: white; }
.price-badge-normal { background: #888; color: white; }
body.dark-mode .price-badge-up { background: #f5576c; }
body.dark-mode .price-badge-down { background: #52c41a; }
body.dark-mode .price-badge-floating { background: #ff9800; }
body.dark-mode .price-badge-normal { background: #666; }

/* ========== 逾期标红样式 ========== */
.overdue-number {
    color: #f5576c !important;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
body.dark-mode .overdue-number {
    color: #f87171 !important;
}
.overdue-badge {
    background: #f5576c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
}
body.dark-mode .overdue-badge {
    background: #f87171;
}
.overdue-row {
    background-color: rgba(245, 87, 108, 0.1);
    border-left: 3px solid #f5576c;
}
body.dark-mode .overdue-row {
    background-color: rgba(248, 113, 113, 0.15);
    border-left-color: #f87171;
}
.overdue-mark {
    background: #f5576c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}
body.dark-mode .overdue-mark {
    background: #f87171;
}

/* ========== 备注红色字体 ========== */
.repay-red-note { color: #f5576c !important; font-size: 12px; }
.stat-red-note { color: #f5576c !important; font-size: 12px; }
body.dark-mode .repay-red-note, body.dark-mode .stat-red-note { color: #f87171 !important; }

/* ========== 价格历史弹窗样式 ========== */
.price-history-list { max-height: 400px; overflow-y: auto; }
.price-history-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; }
body.dark-mode .price-history-item { border-bottom-color: #334155; }
.price-history-time { font-size: 12px; color: #888; }
body.dark-mode .price-history-time { color: #94a3b8; }
.price-arrow-up { color: #f5576c; font-size: 14px; }
.price-arrow-down { color: #52c41a; font-size: 14px; }
.current-price-box { background: #e6f7e6; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
body.dark-mode .current-price-box { background: #0f172a; }
.initial-price-box { background: #f0e6ff; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
body.dark-mode .initial-price-box { background: #2d3a5e; }

/* ========== 登录页面 ========== */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; }
.login-card { background: white; border-radius: 24px; padding: 40px 30px; width: 100%; max-width: 350px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-card h2 { text-align: center; margin-bottom: 30px; color: #333; font-size: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
body.dark-mode .form-group label { color: #cbd5e1; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 12px; font-size: 14px; outline: none; }
.btn { width: 100%; padding: 14px; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn-secondary { background: #f0f0f0; color: #333; width: auto; padding: 8px 16px; }
body.dark-mode .btn-secondary { background: #334155; color: #e2e8f0; }
.btn-danger { background: #f5576c; color: white; width: auto; padding: 8px 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; width: auto; }
.btn-success { background: #52c41a; color: white; }
.btn-warning { background: #ff9800; color: white; width: auto; padding: 6px 12px; }
.link { color: #667eea; text-decoration: none; font-size: 14px; cursor: pointer; }

/* ========== 通用组件 ========== */
.theme-toggle { background: rgba(255,255,255,0.2); border: none; border-radius: 30px; padding: 6px 12px; cursor: pointer; color: white; font-size: 16px; }
.chart-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.chart-tab { padding: 4px 12px; border-radius: 20px; background: #f0f0f0; cursor: pointer; font-size: 12px; }
body.dark-mode .chart-tab { background: #334155; }
.chart-tab.active { background: #667eea; color: white; }
.user-menu { position: absolute; top: 35px; right: 0; background: white; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 200; min-width: 150px; }
.user-menu div { padding: 10px 15px; cursor: pointer; font-size: 13px; color: #333; }
.user-menu div:hover { background: #f0f0f0; }
.user-menu hr { margin: 5px 0; border-color: #eee; }
.app-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 16px; position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: nowrap; }
.header-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.header-left h2 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; }
.user-name { cursor: pointer; white-space: nowrap; }

/* 顶部统计卡片 - 一行显示 */
.stats {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 8px;
    justify-content: space-between;
}
.stat-box {
    background: rgba(255,255,255,0.2);
    padding: 8px 6px;
    border-radius: 10px;
    flex: 1;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-label {
    font-size: 10px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container { max-width: 600px; margin: 0 auto; padding: 12px; padding-bottom: 80px; transition: max-width 0.2s ease; }
.card { background: white; border-radius: 16px; padding: 12px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card-title { font-size: 15px; font-weight: bold; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.valid-count { font-size: 11px; color: #999; }
.product-list { position: absolute; z-index: 100; background: white; width: 100%; min-width: 250px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 8px; margin-top: 4px; max-height: 250px; overflow-y: auto; overflow-x: auto; }
.product-list-item { padding: 10px 12px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; gap: 12px; }
.product-list-item:hover { background: #f8f9fa; }
body.dark-mode .product-list-item { border-bottom-color: #334155; }
body.dark-mode .product-list-item:hover { background: #0f172a; }
.product-list-item:last-child { border-bottom: none; }
.product-list-name { font-weight: 500; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.product-list-price { font-size: 12px; color: #666; flex-shrink: 0; white-space: nowrap; }
.customer-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; gap: 10px; flex-wrap: wrap; }
.customer-info { flex: 1; min-width: 150px; }
.customer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.category-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; border-bottom: 1px solid #eee; gap: 10px; flex-wrap: wrap; transition: background 0.2s; }
.category-item:hover { background: rgba(102, 126, 234, 0.05); }
body.dark-mode .category-item:hover { background: rgba(102, 126, 234, 0.1); }
.category-info { flex: 1; min-width: 160px; }
.category-name { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.category-name span:first-child { font-size: 18px; cursor: pointer; }
.category-name span:first-child:hover { opacity: 0.7; }
.category-name span:last-child { cursor: pointer; }
.category-name span:last-child:hover { text-decoration: underline; }
.category-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #888; margin-top: 4px; }
body.dark-mode .category-meta { color: #94a3b8; }
.category-meta-item { display: flex; align-items: center; gap: 4px; }
.category-actions { display: flex; gap: 8px; flex-shrink: 0; }
.product-list-item-card { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; gap: 10px; flex-wrap: wrap; }
.product-info-card { flex: 1; min-width: 150px; }
.product-actions-card { display: flex; gap: 8px; flex-shrink: 0; }
.debt-row { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid #eee; gap: 8px; flex-wrap: wrap; }
.debt-checkbox { width: 30px; }
.debt-content { flex: 1; min-width: 150px; }
.debt-amount { color: #f5576c; font-weight: bold; font-size: 14px; }
.badge { background: #667eea; color: white; padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.info-text { font-size: 11px; color: #666; margin-top: 6px; }
.debt-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.debt-table th, .debt-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid #eee; }
.debt-table th { background: #f8f9fa; font-weight: 600; font-size: 12px; }
.debt-table input, .debt-table select { width: 100%; padding: 6px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; }
.delete-row-btn { color: #f5576c; cursor: pointer; font-size: 18px; }
.total-row { background: #f8f9fa; font-weight: bold; }
.total-row td { font-size: 13px; padding: 8px 6px; }
.person-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.person-tag { background: #f0f0f0; padding: 4px 10px; border-radius: 20px; font-size: 12px; cursor: pointer; }
.person-tag.selected { background: #667eea; color: white; }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-content { background: white; border-radius: 20px; width: 90%; max-width: 500px; padding: 20px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 18px; font-weight: bold; }
.close { cursor: pointer; font-size: 24px; color: #999; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-width: 600px; margin: 0 auto; background: white; display: flex; border-top: 1px solid #ddd; z-index: 100; padding-bottom: env(safe-area-inset-bottom, 0); transition: max-width 0.2s ease; }
.nav-item { flex: 1; text-align: center; padding: 8px; cursor: pointer; font-size: 11px; }
.nav-item span { font-size: 20px; display: block; }
.nav-item.active { background: #f0e6ff; color: #667eea; }
.toast { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: white; padding: 6px 12px; border-radius: 20px; font-size: 13px; z-index: 1100; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.row .form-group { flex: 1; margin-bottom: 0; }
.import-area { border: 2px dashed #ddd; border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; margin-bottom: 12px; }
canvas { max-height: 180px; width: 100%; }
.query-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.query-bar input, .query-bar select { flex: 1; padding: 6px; border: 1px solid #ddd; border-radius: 8px; font-size: 12px; }
.debt-detail-row { padding: 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.debt-detail-info { flex: 1; cursor: pointer; }
.debt-detail-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.loading-content { background: white; padding: 20px 30px; border-radius: 16px; text-align: center; }
.loading-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.floating-badge { background: #ff9800; color: white; font-size: 10px; padding: 2px 6px; border-radius: 12px; margin-left: 8px; display: inline-block; }
.category-count { color: #f5576c; font-size: 12px; margin-left: 8px; font-weight: normal; }
body.dark-mode .category-count { color: #f87171; }
.inline-row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.inline-group { display: flex; flex-direction: column; gap: 6px; }
.inline-group label { font-size: 13px; font-weight: 500; color: #333; margin: 0; }
body.dark-mode .inline-group label { color: #cbd5e1; }
.inline-group input, .inline-group select { padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; background: white; }
body.dark-mode .inline-group input, body.dark-mode .inline-group select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.checkbox-group { display: flex; align-items: center; gap: 8px; padding-top: 28px; }
.checkbox-group label { margin: 0; cursor: pointer; }
.checkbox-group input { width: 18px; height: 18px; cursor: pointer; margin: 0; }
.reset-options { margin-bottom: 20px; }
.reset-option-title { font-weight: bold; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px solid #eee; }
.reset-sub-options { margin-left: 25px; margin-top: 10px; margin-bottom: 15px; }
.reset-sub-options label { display: block; margin: 8px 0; cursor: pointer; }
.reset-select { margin-left: 25px; margin-top: 10px; margin-bottom: 15px; }
.reset-select select { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #ddd; }
body.dark-mode .reset-select select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.repay-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.repay-buttons .btn, .repay-buttons .btn-sm { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.btn-add-row { width: 100%; padding: 10px; background: #f8f9fa; border: 1px dashed #ccc; border-radius: 12px; font-size: 14px; font-weight: 500; color: #667eea; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.btn-add-row:hover { background: #eef2ff; border-color: #667eea; color: #4c6ef5; }
.debt-info-line { font-size: 12px; color: #888; margin-top: 4px; }
body.dark-mode .debt-info-line { color: #aaa; }
.query-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.query-row .form-group { flex: 1; margin-bottom: 0; }
.compact-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.compact-row .compact-field { flex: 1; min-width: 100px; }
.compact-row .compact-field label { font-size: 12px; font-weight: 500; color: #333; display: block; margin-bottom: 4px; }
body.dark-mode .compact-row .compact-field label { color: #cbd5e1; }
.compact-row .compact-field input, .compact-row .compact-field select { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 10px; font-size: 13px; background: white; }
body.dark-mode .compact-row .compact-field input, body.dark-mode .compact-row .compact-field select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.floating-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.floating-checkbox label { font-size: 13px; color: #333; cursor: pointer; }
body.dark-mode .floating-checkbox label { color: #cbd5e1; }
.floating-checkbox input { width: 18px; height: 18px; cursor: pointer; }
.section-divider { margin: 16px 0 12px 0; padding-top: 8px; border-top: 2px solid #e0e0e0; }
body.dark-mode .section-divider { border-top-color: #334155; }
.conflict-item { border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; padding: 10px; }
body.dark-mode .conflict-item { border-color: #334155; }
.conflict-name { font-weight: bold; margin-bottom: 8px; font-size: 14px; }
.conflict-diff { font-size: 12px; margin-bottom: 8px; color: #f5576c; }
.conflict-buttons { display: flex; gap: 10px; }
.product-sales-list { max-height: 300px; overflow-y: auto; }
.product-sales-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #eee; }
body.dark-mode .product-sales-item { border-bottom-color: #334155; }
.product-sales-name { font-weight: 500; }
.product-sales-count { color: #f5576c; font-weight: bold; }
.price-tooltip { position: fixed; background: rgba(0,0,0,0.85); color: white; padding: 8px 14px; border-radius: 8px; font-size: 12px; z-index: 2000; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
body.dark-mode .price-tooltip { background: rgba(255,255,255,0.9); color: #333; }

/* ========== 承诺还款日期样式 ========== */
.promised-select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; background: white; }
body.dark-mode .promised-select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.promised-date-input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; }
body.dark-mode .promised-date-input { background: #0f172a; border-color: #334155; color: #e2e8f0; }

/* ========== 页面宽度选择弹窗样式 ========== */
.width-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.width-selector-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 300px;
    overflow: hidden;
}
body.dark-mode .width-selector-card {
    background: #1e293b;
    border: 1px solid #334155;
}
.width-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 16px;
    background: #667eea;
    color: white;
}
body.dark-mode .width-selector-header {
    border-bottom-color: #334155;
    background: #4c6ef5;
}
.width-selector-header .close-width {
    cursor: pointer;
    font-size: 24px;
    color: white;
}
.width-selector-body {
    padding: 15px 20px;
}
.width-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}
body.dark-mode .width-option {
    border-bottom-color: #334155;
}
.width-option:hover {
    background: #f8f9fa;
}
body.dark-mode .width-option:hover {
    background: #0f172a;
}
.width-option.active {
    color: #667eea;
    font-weight: bold;
}
body.dark-mode .width-option.active {
    color: #a5b4fc;
}
.width-option-name {
    font-size: 14px;
}
.width-option-size {
    font-size: 12px;
    color: #888;
}
body.dark-mode .width-option-size {
    color: #94a3b8;
}
.width-option-check {
    color: #52c41a;
    font-size: 16px;
}

/* ========== 还款页面分组样式 ========== */
.invoice-group {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
}
body.dark-mode .invoice-group {
    background: #1e293b;
    border-color: #334155;
}

.invoice-header {
    background: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
}
body.dark-mode .invoice-header {
    background: #0f172a;
    border-bottom-color: #334155;
}
.invoice-header:hover {
    background: #f0f2f5;
}
body.dark-mode .invoice-header:hover {
    background: #1a2332;
}

.invoice-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.invoice-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}
.invoice-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.invoice-no {
    font-weight: bold;
    font-family: monospace;
    font-size: 14px;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
}
body.dark-mode .invoice-no {
    background: #4c6ef5;
}

.expand-icon {
    font-size: 12px;
    color: #888;
    transition: transform 0.2s;
    margin-left: auto;
}
.expand-icon.expanded {
    transform: rotate(180deg);
}

.invoice-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.invoice-body {
    padding: 10px 15px;
}

.products-list {
    margin-bottom: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
    flex-wrap: wrap;
}
body.dark-mode .product-item {
    border-bottom-color: #334155;
}
.product-item:last-child {
    border-bottom: none;
}

.product-checkbox {
    flex-shrink: 0;
}
.product-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.product-detail {
    flex: 1;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-name {
    font-weight: 500;
}

.product-meta {
    font-size: 12px;
    color: #888;
}
body.dark-mode .product-meta {
    color: #94a3b8;
}

.product-amount {
    font-weight: bold;
    color: #f5576c;
    font-size: 13px;
    flex-shrink: 0;
}

.product-actions {
    flex-shrink: 0;
}
.product-actions .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.invoice-summary {
    background: #f8f9fa;
    padding: 10px 15px;
    margin: 10px -15px 0 -15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #e8e8e8;
}
body.dark-mode .invoice-summary {
    background: #0f172a;
    border-top-color: #334155;
}

.summary-item {
    font-size: 13px;
}
.summary-item strong {
    color: #f5576c;
}

.invoice-footer {
    padding: 10px 15px;
    background: #fffbe6;
    border-top: 1px solid #ffe58f;
    font-size: 12px;
    color: #d48806;
    cursor: pointer;
}
body.dark-mode .invoice-footer {
    background: #2d2a1a;
    border-top-color: #5c4a1a;
    color: #f59e0b;
}
.invoice-footer:hover {
    background: #fff1b8;
}
body.dark-mode .invoice-footer:hover {
    background: #3d361a;
}

.invoice-date-status {
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fafafa;
    font-size: 12px;
    border-top: 1px solid #eee;
}
body.dark-mode .invoice-date-status {
    background: #111827;
    border-top-color: #334155;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}
.status-unpaid {
    background: #f5576c;
    color: white;
}
.status-partial {
    background: #ff9800;
    color: white;
}
.status-paid {
    background: #52c41a;
    color: white;
}

/* ========== 还款历史弹窗 ========== */
.payment-history-list {
    max-height: 400px;
    overflow-y: auto;
}
.payment-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 8px;
}
body.dark-mode .payment-record-item {
    border-bottom-color: #334155;
}
.record-info {
    flex: 1;
}
.record-date {
    font-size: 12px;
    color: #888;
}
.record-amount {
    font-weight: bold;
    color: #52c41a;
}
.record-operator {
    font-size: 11px;
    color: #999;
}
.delete-record-btn {
    color: #f5576c;
    cursor: pointer;
    font-size: 14px;
}

/* ========== 还款弹窗样式 ========== */
.pay-modal .modal-content {
    max-width: 400px;
}
.current-debt-amount {
    background: #f0e6ff;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}
.current-debt-amount .label {
    font-size: 12px;
    color: #666;
}
.current-debt-amount .amount {
    font-size: 24px;
    font-weight: bold;
    color: #f5576c;
}

/* ========== 用户管理弹窗样式 ========== */
.user-mgr-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-direction: row;
}

.user-mgr-buttons .btn-secondary {
    flex: 1;
    text-align: center;
}

.user-table-container {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.user-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.user-table th {
    background: #f8f9fa;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.user-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.user-table tr:last-child td {
    border-bottom: none;
}

.user-table .action-buttons {
    white-space: nowrap;
}

.user-table .action-buttons .btn-sm {
    margin-right: 4px;
}

.invite-table-container {
    max-height: 200px;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.invite-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.invite-table th {
    background: #f8f9fa;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.invite-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.status-active {
    color: #52c41a;
}

.status-suspended {
    color: #f5576c;
}

/* ========== 浮动商品价格弹窗样式 ========== */
.floating-price-modal .modal-content {
    max-width: 400px;
}

.floating-price-modal .form-group {
    margin-bottom: 16px;
}

.floating-price-modal .form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.floating-price-modal .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.floating-price-modal .product-name-display {
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
}

body.dark-mode .floating-price-modal .product-name-display {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
}

/* ========== 公告管理弹窗样式 ========== */
.announcement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 12px;
}
body.dark-mode .announcement-item {
    border-bottom-color: #334155;
}
.announcement-info {
    flex: 1;
}
.announcement-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.announcement-title strong {
    font-size: 14px;
}
.read-count {
    font-size: 11px;
    color: #888;
    margin-left: auto;
}
.announcement-content {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
body.dark-mode .announcement-content {
    color: #cbd5e1;
}
.announcement-meta {
    font-size: 11px;
    color: #999;
}
.announcement-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.priority-high { color: #f5576c; }
.priority-medium { color: #ff9800; }
.priority-low { color: #52c41a; }

/* ========== 公告展示弹窗样式（普通用户） ========== */
.announcement-modal .modal-content {
    max-width: 500px;
}
.announcement-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}
.expiry-announcement-full {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}
body.dark-mode .expiry-announcement-full {
    background: #2d2a1a;
    border-left-color: #f59e0b;
}
.expiry-announcement-full.expiry-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}
.expiry-announcement-full.expiry-locked {
    background: #f8d7da;
    border-left-color: #dc3545;
}
.expiry-announcement-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.expiry-announcement-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.expiry-announcement-content {
    font-size: 14px;
    line-height: 1.5;
}
.other-announcements {
    margin-top: 16px;
}
.other-announcements-title {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.announcement-list-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 10px;
}
body.dark-mode .announcement-list-item {
    background: #0f172a;
}
.announcement-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.announcement-list-header strong {
    font-size: 14px;
    flex: 1;
}
.announcement-date {
    font-size: 11px;
    color: #999;
}
.btn-read {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
}
.btn-read:hover {
    background: #4c6ef5;
}
.announcement-list-content {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
body.dark-mode .announcement-list-content {
    color: #cbd5e1;
}
.all-read-btn {
    text-align: center;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 12px;
    margin-top: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #52c41a;
}
body.dark-mode .all-read-btn {
    background: #1a3a1a;
}
.all-read-btn:hover {
    background: #c8e6c9;
}
.modal-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: center;
}
body.dark-mode .modal-footer {
    border-top-color: #334155;
}

/* ========== 到期锁定遮罩层样式 ========== */
.expiry-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expiry-lock-card {
    background: white;
    border-radius: 28px;
    padding: 30px 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
body.dark-mode .expiry-lock-card {
    background: #1e293b;
    border: 1px solid #334155;
}
.expiry-lock-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.expiry-lock-title {
    font-size: 24px;
    font-weight: bold;
    color: #f5576c;
    margin-bottom: 16px;
}
body.dark-mode .expiry-lock-title {
    color: #f87171;
}
.expiry-lock-content {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 24px;
}
body.dark-mode .expiry-lock-content {
    color: #cbd5e1;
}
/* ========== 原生日期选择器暗色模式 - 完整方案（方法五） ========== */
/* 基础样式 - 亮色模式 */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    color-scheme: light dark;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

/* 焦点状态 */
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 只读和禁用状态 */
input[type="date"]:disabled,
input[type="date"]:read-only,
input[type="time"]:disabled,
input[type="time"]:read-only,
input[type="datetime-local"]:disabled,
input[type="datetime-local"]:read-only {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ========== 暗色模式样式（方法五完整方案） ========== */
body.dark-mode input[type="date"],
body.dark-mode input[type="time"],
body.dark-mode input[type="datetime-local"] {
    color-scheme: dark;
    background-color: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

/* 焦点状态 - 暗色模式 */
body.dark-mode input[type="date"]:focus,
body.dark-mode input[type="time"]:focus,
body.dark-mode input[type="datetime-local"]:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* 只读和禁用状态 - 暗色模式 */
body.dark-mode input[type="date"]:disabled,
body.dark-mode input[type="date"]:read-only,
body.dark-mode input[type="time"]:disabled,
body.dark-mode input[type="time"]:read-only,
body.dark-mode input[type="datetime-local"]:disabled,
body.dark-mode input[type="datetime-local"]:read-only {
    background-color: #1e293b;
    color: #64748b;
    border-color: #334155;
}
/* ========== 登录界面测试账号和联系方式美化样式 ========== */
.login-info-card {
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
}

.login-info-item.test-account {
    border-bottom: 1px dashed rgba(102, 126, 234, 0.3);
}

.info-icon {
    font-size: 16px;
}

.info-text {
    font-size: 13px;
    color: #555;
}

.info-text strong {
    color: #667eea;
    font-weight: 600;
}

.info-separator {
    color: #ccc;
    font-size: 12px;
    margin: 0 4px;
}

.info-wechat {
    font-size: 12px;
    color: #888;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

/* 暗色模式适配 */
body.dark-mode .login-info-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

body.dark-mode .info-text {
    color: #cbd5e1;
}

body.dark-mode .info-text strong {
    color: #a5b4fc;
}

body.dark-mode .info-separator {
    color: #475569;
}

body.dark-mode .info-wechat {
    color: #94a3b8;
    background: rgba(165, 180, 252, 0.15);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .login-info-card {
        padding: 10px 12px;
        margin-top: 16px;
    }
    
    .login-info-item {
        padding: 5px 0;
    }
    
    .info-text {
        font-size: 12px;
    }
    
    .info-wechat {
        font-size: 11px;
    }
}
/* ========== 顶部标题栏暗色模式基础样式 ========== */
body.dark-mode .app-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
}

body.dark-mode .app-header h2 {
    color: #e2e8f0;
}

body.dark-mode .app-header .user-name {
    color: #e2e8f0;
}

body.dark-mode .app-header .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

body.dark-mode .app-header .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 顶部统计卡片暗色模式 */
body.dark-mode .app-header .stats .stat-box {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .app-header .stats .stat-value {
    color: #e2e8f0;
}

body.dark-mode .app-header .stats .stat-label {
    color: #94a3b8;
}
/* ========== 夜间模式统一修复 - 公用样式 ========== */

/* 1. 记账页面 - 批量确认记账按钮 */
body.dark-mode .btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

body.dark-mode .btn-success:disabled {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #6b7280;
}

/* 2. 客户页面 - 添加客户按钮 */
body.dark-mode .card .btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

/* 3. 还款页面 - 按钮组统一样式 */
body.dark-mode .repay-buttons .btn,
body.dark-mode .repay-buttons .btn-sm {
    background: #334155;
    color: #e2e8f0;
    border: none;
}

body.dark-mode .repay-buttons .btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

body.dark-mode .repay-buttons .btn-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

body.dark-mode .repay-buttons .btn-secondary {
    background: #475569;
}

body.dark-mode .repay-buttons .btn:hover,
body.dark-mode .repay-buttons .btn-sm:hover {
    filter: brightness(1.1);
}

/* 4. 还款页面 - 单号卡片整体样式 */
body.dark-mode .invoice-group {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .invoice-header {
    background: #0f172a !important;
    border-bottom-color: #334155;
}

body.dark-mode .invoice-info .invoice-no {
    background: #4c6ef5;
}

body.dark-mode .invoice-info .customer-info {
    color: #cbd5e1 !important;
}

body.dark-mode .invoice-info .status-badge.status-unpaid {
    background: #f5576c;
}

body.dark-mode .invoice-info .status-badge.status-partial {
    background: #f59e0b;
}

body.dark-mode .invoice-info .status-badge.status-paid {
    background: #10b981;
}

body.dark-mode .overdue-mark {
    background: #f87171;
}

body.dark-mode .invoice-body {
    background: #1e293b;
}

body.dark-mode .product-item {
    border-bottom-color: #334155;
}

body.dark-mode .product-name {
    color: #e2e8f0;
}

body.dark-mode .product-meta {
    color: #94a3b8;
}

body.dark-mode .product-amount {
    color: #f87171;
}

body.dark-mode .invoice-summary {
    background: #0f172a;
    border-top-color: #334155;
}

body.dark-mode .summary-item {
    color: #cbd5e1;
}

body.dark-mode .summary-item strong {
    color: #f87171;
}

body.dark-mode .invoice-date-status {
    background: #111827;
    border-top-color: #334155;
    color: #94a3b8;
}

body.dark-mode .invoice-footer {
    background: #2d2a1a;
    border-top-color: #5c4a1a;
    color: #f59e0b;
}

/* 5. 统计页面 - 查询按钮 */
body.dark-mode .card .btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* 6. 统计页面 - 操作按钮（删除整单、编辑、删除） */
body.dark-mode .invoice-buttons .btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border: none;
}

body.dark-mode .invoice-buttons .btn-danger {
    background: #e11d48;
    color: white;
}

body.dark-mode .debt-detail-actions .btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
}

body.dark-mode .debt-detail-actions .btn-danger {
    background: #e11d48;
    color: white;
    border: none;
}

body.dark-mode .debt-detail-actions .btn-sm {
    background: #4f46e5;
    color: white;
    border: none;
}

/* 7. 统计页面 - 欠款明细行 */
body.dark-mode .debt-detail-row {
    border-bottom-color: #334155;
}

body.dark-mode .debt-detail-info {
    color: #e2e8f0;
}

body.dark-mode .debt-info-line {
    color: #94a3b8;
}

/* 8. 查询输入框和下拉框统一样式 */
body.dark-mode .query-bar input,
body.dark-mode .query-bar select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .query-bar input:focus,
body.dark-mode .query-bar select:focus {
    border-color: #667eea;
    outline: none;
}

/* 9. 底部导航栏暗色模式 */
body.dark-mode .bottom-nav {
    background: #1e293b;
    border-top-color: #334155;
}

body.dark-mode .nav-item {
    color: #94a3b8;
}

body.dark-mode .nav-item.active {
    background: #2d3a5e;
    color: #a5b4fc;
}
/* ========== 登录界面夜间模式适配 ========== */

/* 登录容器背景 - 暗色模式 */
body.dark-mode .login-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 登录卡片背景 */
body.dark-mode .login-card {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
}

/* 登录卡片标题 */
body.dark-mode .login-card h2 {
    color: #e2e8f0;
}

/* 表单标签 */
body.dark-mode .login-card .form-group label {
    color: #cbd5e1;
}

/* 输入框 */
body.dark-mode .login-card .form-group input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .login-card .form-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 输入框占位符 */
body.dark-mode .login-card .form-group input::placeholder {
    color: #64748b;
}

/* 登录按钮 */
body.dark-mode .login-card .btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

body.dark-mode .login-card .btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* 链接样式 */
body.dark-mode .login-card .link {
    color: #a5b4fc;
}

body.dark-mode .login-card .link:hover {
    color: #c7d2fe;
}

/* 使用说明链接 */
body.dark-mode .login-card a[href="使用说明.html"] {
    color: #a5b4fc;
}

/* 测试账号和联系方式卡片 */
body.dark-mode .login-info-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155;
}

body.dark-mode .info-text {
    color: #94a3b8;
}

body.dark-mode .info-text strong {
    color: #a5b4fc;
}

body.dark-mode .info-separator {
    color: #475569;
}

body.dark-mode .info-wechat {
    color: #94a3b8;
    background: rgba(165, 180, 252, 0.15);
}

/* 弹窗暗色模式（忘记密码/注册弹窗） */
body.dark-mode .modal-content {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .modal-header {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

body.dark-mode .modal-header .close {
    color: #94a3b8;
}

body.dark-mode .modal-header .close:hover {
    color: #e2e8f0;
}

body.dark-mode .modal-content .form-group label {
    color: #cbd5e1;
}

body.dark-mode .modal-content .form-group input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .modal-content .form-group input:focus {
    border-color: #667eea;
    outline: none;
}

body.dark-mode .modal-content .info-text {
    background: #0f172a;
    color: #94a3b8;
}

body.dark-mode .modal-content .btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}