/**
 * TodoEngine 集成样式 - 支持明暗主题
 */

/* ==================== 统计卡片基础样式（紧凑版） ==================== */
.stat-card-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 60px;
}

.stat-card-mini:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 可点击的统计卡片 */
.stat-card-mini.clickable {
    cursor: pointer;
    user-select: none;
}

.stat-card-mini.clickable:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.stat-card-mini.clickable.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

.stat-card-mini .stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.stat-card-mini .stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* ==================== 待办统计网格 ==================== */
.todo-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* ==================== 待办内容区 ==================== */
.todo-content {
    padding: 16px;
}

/* ==================== 待办卡片增强 ==================== */
.todo-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.todo-card:active {
    transform: scale(0.98);
}

.todo-card::after {
    display: none;
}

.todo-card:hover::after {
    display: none;
}

.todo-card:hover {
    transform: translateX(4px);
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.3));
}

/* 优先级边框 */
.todo-card[data-priority="high"] {
    border-left: 3px solid #e74c3c;
}

.todo-card[data-priority="medium"] {
    border-left: 3px solid #f39c12;
}

.todo-card[data-priority="low"] {
    border-left: 3px solid #27ae60;
}

/* ==================== AI 分析徽章 ==================== */
.todo-ai.badge.success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* ==================== 进度文本 ==================== */
.todo-progress-text {
    background: var(--badge-bg, rgba(52, 152, 219, 0.2));
    color: var(--badge-text, #3498db);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* ==================== 下一步行动 ==================== */
.todo-next-actions {
    margin-top: 12px;
    padding: 12px;
    background: var(--action-bg, rgba(52, 152, 219, 0.1));
    border-radius: 6px;
    border-left: 2px solid #3498db;
}

.todo-next-actions strong {
    display: block;
    margin-bottom: 6px;
    color: #3498db;
    font-size: 13px;
}

.todo-next-actions ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.todo-next-actions li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.todo-next-actions li:before {
    content: "→ ";
    color: #3498db;
    margin-right: 4px;
}

/* ==================== 底部信息 ==================== */
.todo-footer-info {
    margin-top: 20px;
    padding: 12px;
    background: var(--footer-bg, rgba(255, 255, 255, 0.05));
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-footer-info .last-update {
    font-size: 12px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.refresh-btn-small {
    background: var(--btn-bg, rgba(52, 152, 219, 0.2));
    border: 1px solid #3498db;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.refresh-btn-small:hover {
    background: #3498db;
    color: white;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* ==================== 详情弹窗 ==================== */
.todo-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay, rgba(0, 0, 0, 0.7));
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.todo-detail-modal.active {
    display: flex;
}

.todo-detail-content {
    background: var(--modal-bg, #1a1a2e);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--modal-shadow, 0 10px 40px rgba(0, 0, 0, 0.5));
}

.todo-detail-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-detail-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary, #fff);
    margin: 0;
}

.todo-detail-close {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.todo-detail-close:hover {
    background: var(--hover-bg, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #fff);
}

.todo-detail-body {
    padding: 20px;
}

.todo-detail-section {
    margin-bottom: 24px;
}

.todo-detail-section-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.todo-detail-section-title .icon {
    font-size: 18px;
}

.todo-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.todo-detail-info-item {
    background: var(--info-bg, rgba(255, 255, 255, 0.05));
    padding: 10px;
    border-radius: 6px;
}

.todo-detail-info-label {
    font-size: 11px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    margin-bottom: 4px;
}

.todo-detail-info-value {
    font-size: 14px;
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.todo-detail-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.todo-detail-actions-list li {
    padding: 8px 12px;
    background: var(--action-bg, rgba(52, 152, 219, 0.1));
    border-radius: 6px;
    margin-bottom: 8px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 14px;
}

.todo-detail-actions-list li:before {
    content: "→ ";
    color: #3498db;
    margin-right: 4px;
}

.todo-detail-metrics-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.todo-detail-metrics-list li {
    padding: 8px 12px;
    background: var(--metric-bg, rgba(46, 204, 113, 0.1));
    border-radius: 6px;
    margin-bottom: 8px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 14px;
}

.todo-detail-metrics-list li:before {
    content: "✓ ";
    color: #2ecc71;
    margin-right: 4px;
}

.todo-detail-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-detail-updated {
    font-size: 12px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.todo-detail-close-btn {
    background: var(--btn-primary, #3498db);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.todo-detail-close-btn:hover {
    background: var(--btn-primary-hover, #2980b9);
}

/* ==================== 白天模式适配 ==================== */
body.light-theme {
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-border: rgba(0, 0, 0, 0.1);
    --card-hover-bg: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --text-primary: #2c3e50;
    --text-secondary: rgba(44, 62, 80, 0.7);
    --text-muted: rgba(44, 62, 80, 0.5);
    --badge-bg: rgba(52, 152, 219, 0.15);
    --badge-text: #2980b9;
    --action-bg: rgba(52, 152, 219, 0.1);
    --footer-bg: rgba(0, 0, 0, 0.03);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --modal-bg: #ffffff;
    --modal-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --info-bg: rgba(0, 0, 0, 0.02);
    --metric-bg: rgba(46, 204, 113, 0.1);
    --btn-primary: #3498db;
    --btn-primary-hover: #2980b9;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .todo-detail-content {
        max-height: 90vh;
    }

    .todo-detail-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .todo-detail-modal {
        padding: 10px;
    }
}

/* ==================== 待办列表样式 ==================== */

.todo-list {
    display: grid;
    gap: 12px;
}

.todo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.todo-card:hover {
    transform: translateX(4px);
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.2));
}

.todo-card.high {
    border-left: 3px solid #e74c3c;
}

.todo-card.medium {
    border-left: 3px solid #f39c12;
}

.todo-card.low {
    border-left: 3px solid #27ae60;
}

.todo-card.done {
    opacity: 0.55;
}

.todo-card.done .todo-title {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.todo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.todo-status-icon {
    font-size: 16px;
}

.todo-status-icon.pending { color: #f39c12; }
.todo-status-icon.in_progress { color: #3498db; }
.todo-status-icon.completed { color: #27ae60; }
.todo-status-icon.cancelled { color: #95a5a6; }

.todo-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.todo-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-high {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge-medium {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.badge-low {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.todo-desc {
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 8px;
    line-height: 1.4;
}

.todo-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.todo-id {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.todo-time {
    flex-shrink: 0;
}

.todo-due {
    flex-shrink: 0;
    color: #f39c12;
}

.todo-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.todo-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.todo-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary, #fff);
}

.todo-action-btn.danger {
    color: rgba(231, 76, 60, 0.7);
    border-color: rgba(231, 76, 60, 0.2);
}

.todo-action-btn.danger:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.todo-action-btn.complete {
    color: rgba(39, 174, 96, 0.8);
    border-color: rgba(39, 174, 96, 0.25);
    background: rgba(39, 174, 96, 0.08);
}

.todo-action-btn.complete:hover {
    background: rgba(39, 174, 96, 0.25);
    color: #27ae60;
}

.todo-action-btn.reopen {
    color: rgba(52, 152, 219, 0.8);
    border-color: rgba(52, 152, 219, 0.25);
}

.todo-action-btn.reopen:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* ==================== 奇思妙想模块样式 ==================== */

.idea-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.idea-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.idea-stats-grid .stat-card-mini {
    flex: 0 0 auto;
    min-width: 70px;
    padding: 6px 10px;
}

.idea-stats-grid .stat-card-mini .stat-value {
    font-size: 16px;
}

.idea-stats-grid .stat-card-mini .stat-label {
    font-size: 10px;
}

.idea-list {
    display: grid;
    gap: 12px;
    flex: 1;
}

.idea-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.idea-card:hover {
    transform: translateX(4px);
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.2));
}

.idea-card.draft { border-left: 3px solid #95a5a6; }
.idea-card.incubating { border-left: 3px solid #3498db; }
.idea-card.evolving { border-left: 3px solid #f39c12; }
.idea-card.mature { border-left: 3px solid #27ae60; }
.idea-card.archived { border-left: 3px solid #7f8c8d; }

.idea-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.idea-category-icon {
    font-size: 16px;
}

.idea-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.idea-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-draft { background: rgba(149, 165, 166, 0.2); color: #95a5a6; }
.badge-incubating { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.badge-evolving { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.badge-mature { background: rgba(39, 174, 96, 0.2); color: #27ae60; }
.badge-archived { background: rgba(127, 140, 141, 0.2); color: #7f8c8d; }

.idea-desc {
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 8px;
    line-height: 1.4;
}

.idea-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.idea-id {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.idea-version {
    color: #9b59b6;
}

.idea-score {
    color: #f39c12;
}

.idea-time {
    margin-left: auto;
}

.idea-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.idea-card:hover .idea-actions {
    opacity: 1;
}

.idea-action-btn {
    background: var(--card-bg, rgba(255, 255, 255, 0.1));
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.idea-action-btn:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.2));
}

.idea-action-btn.iterate {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.idea-action-btn.iterate:hover {
    background: rgba(155, 89, 182, 0.4);
}

.idea-action-btn.danger:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* ==================== 想法详情弹窗 ==================== */

.idea-detail-section {
    margin-bottom: 24px;
}

.idea-detail-section h4 {
    font-size: 16px;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.detail-info-item {
    background: var(--info-bg, rgba(255, 255, 255, 0.05));
    padding: 10px;
    border-radius: 6px;
}

.detail-info-label {
    font-size: 11px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    margin-bottom: 4px;
}

.detail-info-value {
    font-size: 14px;
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.idea-description {
    background: var(--info-bg, rgba(255, 255, 255, 0.05));
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ==================== 迭代历史 ==================== */

.iterations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iteration-item {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.iteration-item.latest {
    border-color: #9b59b6;
    background: rgba(155, 89, 182, 0.05);
}

.iteration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.iteration-version {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.iteration-date {
    font-size: 12px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.iteration-score {
    font-size: 12px;
    color: #f39c12;
    margin-left: auto;
}

.iteration-critique,
.iteration-improvements,
.iteration-next {
    margin-bottom: 12px;
}

.iteration-critique strong,
.iteration-improvements strong,
.iteration-next strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.iteration-critique strong { color: #e74c3c; }
.iteration-improvements strong { color: #3498db; }
.iteration-next strong { color: #27ae60; }

.iteration-critique p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.iteration-improvements ul,
.iteration-next ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.iteration-improvements li,
.iteration-next li {
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    padding: 4px 0;
}

.iteration-improvements li::before {
    content: "🔧 ";
    margin-right: 4px;
}

.iteration-next li::before {
    content: "🚀 ";
    margin-right: 4px;
}

/* ==================== 评估指标条 ==================== */

.iteration-evaluation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
}

.eval-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eval-label {
    font-size: 11px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    width: 50px;
}

.eval-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.eval-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.eval-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary, #fff);
    width: 20px;
    text-align: right;
}

/* ==================== 表单样式 ==================== */

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

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--input-border, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary, #fff);
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==================== 弹窗操作按钮 ==================== */

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn.cancel {
    background: var(--card-bg, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.modal-btn.cancel:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.15));
}

.modal-btn.secondary {
    background: var(--card-bg, rgba(255, 255, 255, 0.1));
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.modal-btn.secondary:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.15));
}

.modal-btn.save,
.modal-btn.primary {
    background: #3498db;
    color: white;
}

.modal-btn.save:hover,
.modal-btn.primary:hover {
    background: #2980b9;
}

.modal-btn.danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.modal-btn.danger:hover {
    background: rgba(231, 76, 60, 0.4);
}

/* ==================== 文本颜色工具类 ==================== */

.text-success { color: #27ae60 !important; }
.text-warning { color: #f39c12 !important; }
.text-danger { color: #e74c3c !important; }
.text-info { color: #3498db !important; }
.text-muted { color: var(--text-muted, rgba(255, 255, 255, 0.5)) !important; }

/* ==================== 主按钮样式 ==================== */

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2980b9;
}

/* ==================== 空状态图标 ==================== */

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state button {
    margin-top: 16px;
}

/* ==================== 成功按钮样式 ==================== */

.modal-btn.success {
    background: #27ae60;
    color: white;
}

.modal-btn.success:hover {
    background: #219a52;
}

/* ==================== 提醒样式 ==================== */

.reminder-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.idea-card.has-reminder {
    border-color: #f39c12;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.3); }
    50% { box-shadow: 0 0 15px rgba(243, 156, 18, 0.6); }
}

/* ==================== 决策记录样式 ==================== */

.decision-record {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.decision-record .decision-type {
    font-weight: bold;
    color: #9b59b6;
}

.decision-record .decision-reason {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 13px;
    margin-top: 6px;
}

.decision-record .decision-time {
    font-size: 11px;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    margin-top: 6px;
}

/* ==================== 关联想法样式 ==================== */

.related-ideas {
    margin-top: 12px;
    padding: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
}

.related-idea-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin: 4px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 4px;
    font-size: 12px;
    color: #3498db;
    cursor: pointer;
    transition: all 0.2s;
}

.related-idea-link:hover {
    background: rgba(52, 152, 219, 0.3);
}

/* ==================== 工具栏按钮组 ==================== */

.toolbar-btn-group {
    display: flex;
    gap: 8px;
}

.toolbar-btn-group .toolbar-btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* ==================== 进度弹窗样式 ==================== */

.progress-dialog {
    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: 10000;
}

.progress-dialog-content {
    background: var(--modal-bg, #1a1a2e);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.progress-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-top-color: #3498db;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 10px;
}

.progress-message {
    font-size: 14px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ==================== 白天模式补充样式 ==================== */

body.light-theme .idea-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .idea-card:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .idea-detail-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .iteration-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .eval-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .eval-fill {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

body.light-theme .stat-card-mini {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .progress-dialog-content {
    background: #ffffff;
}

body.light-theme .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .toolbar-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #2c3e50;
}

body.light-theme .toolbar-btn:hover {
    background: rgba(52, 152, 219, 0.15);
}

body.light-theme .modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .modal-header {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .form-input,
body.light-theme .form-textarea,
body.light-theme .form-select {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #2c3e50;
}

body.light-theme .idea-action-btn {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .idea-action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .idea-description {
    color: #34495e;
}

body.light-theme .detail-info-label {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .detail-info-value {
    color: #2c3e50;
}

/* ==================== 编辑按钮样式 ==================== */

.idea-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(52, 152, 219, 0.2);
    border: none;
    border-radius: 4px;
    color: #3498db;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.idea-card:hover .idea-edit-btn {
    opacity: 1;
}

.idea-edit-btn:hover {
    background: rgba(52, 152, 219, 0.4);
}
