/* 可转债数据更新工具 Web版样式 */

body {
    background-color: #f8f9fa;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.container-fluid {
    max-width: 1400px;
}

/* 控制台输出样式 */
.console-output {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    padding: 15px;
    height: 500px;
    overflow-y: auto;
    border: none;
}

.console-line {
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-word;
}

.console-line.info {
    color: #5bc0de;
}

.console-line.success {
    color: #5cb85c;
}

.console-line.warning {
    color: #f0ad4e;
}

.console-line.error {
    color: #d9534f;
}

/* 回测结果样式 */
.results-output {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    height: 500px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.result-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffffff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.result-item h6 {
    color: #007bff;
    margin-bottom: 8px;
    font-weight: bold;
}

.result-item .metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.result-item .metric .label {
    font-weight: 500;
    color: #495057;
}

.result-item .metric .value {
    font-weight: bold;
    color: #28a745;
}

.result-item .metric .value.negative {
    color: #dc3545;
}

/* 按钮样式 */
.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 8px;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    font-weight: 600;
}

/* 滚动条样式 */
.console-output::-webkit-scrollbar,
.results-output::-webkit-scrollbar {
    width: 8px;
}

.console-output::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.console-output::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.results-output::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.results-output::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.results-output::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .console-output,
    .results-output {
        height: 300px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* 加载动画 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.ready {
    background-color: #28a745;
}

.status-indicator.working {
    background-color: #ffc107;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.status-indicator.error {
    background-color: #dc3545;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* 工具提示样式 */
.tooltip-inner {
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
}

/* 图表显示样式 */
.chart-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.chart-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.chart-container img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* 图表标题样式 */
.chart-title {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* 图表文件名样式 */
.chart-filename {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
}