/* 添加到现有CSS文件中 - 优化Markdown渲染样式 */

/* 迭代结果项的表格样式 */
.iteration-item table,
.final-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9em;
}

.iteration-item th, 
.iteration-item td,
.final-result th,
.final-result td {
    border: 1px solid rgba(30, 58, 95, 0.5);
    padding: 8px;
    text-align: left;
}

.iteration-item th,
.final-result th {
    background-color: rgba(10, 25, 40, 0.6);
    color: var(--color-primary);
    font-weight: 500;
}

.iteration-item tr:nth-child(odd),
.final-result tr:nth-child(odd) {
    background-color: rgba(10, 25, 40, 0.2);
}

/* 标题样式 */
.iteration-item h2,
.final-result h1,
.final-result h2,
.final-result h3 {
    color: var(--color-primary);
    margin-top: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(10, 200, 185, 0.3);
    padding-bottom: 6px;
}

/* 状态提示样式 */
.final-result blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 10px 15px;
    margin: 15px 0;
    background-color: rgba(10, 200, 185, 0.05);
    border-radius: 4px;
}

/* 成功与警告图标颜色 */
.final-result h1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 添加结果导出按钮 */
.iteration-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 10px 0;
}

/* 支路潮流负载率显示效果 */
.usage-indicator-container {
    position: relative;
    width: 100%;
    height: 24px;
    padding: 2px;
    border-radius: 4px;
    background-color: rgba(240, 240, 240, 0.2);
}

.usage-indicator {
    position: relative;
    height: 100%;
    width: var(--usage, 0%);
    border-radius: 3px;
    background: linear-gradient(to right, 
        rgba(0, 200, 83, 0.7) 0%, 
        rgba(255, 193, 7, 0.7) 70%, 
        rgba(255, 87, 34, 0.7) 90%
    );
    transition: width 0.3s ease-out;
}

/* 为不同负载级别添加颜色 */
.usage-indicator.high-loading {
    background: linear-gradient(to right, rgba(255, 87, 34, 0.8) 0%, rgba(255, 0, 0, 0.8) 100%);
}

.usage-indicator.medium-loading {
    background: linear-gradient(to right, rgba(255, 193, 7, 0.8) 0%, rgba(255, 152, 0, 0.8) 100%);
}

/* 通知消息样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #00796B;
    color: white;
}

.notification.error {
    background-color: #D32F2F;
    color: white;
}

.notification.info {
    background-color: #0277BD;
    color: white;
}

.notification .notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}