/* CPU性能监控相关样式 */

/* 性能统计显示区域 */
#performance-stats {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    z-index: 10000;
    min-width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* 性能测试按钮样式 */
#performance-test-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', cursive;
}

#performance-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#performance-test-btn:active {
    transform: translateY(1px);
}

/* 性能指标动画 */
.performance-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 控制台输出样式 */
.console-output {
    position: fixed;
    bottom: 70px;
    right: 10px;
    width: 300px;
    max-height: 200px;
    background: rgba(0, 0, 0, 0.85);
    color: #33ff33;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 255, 51, 0.3);
}

.console-output .log {
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-output .log.info {
    color: #33ff33;
}

.console-output .log.warn {
    color: #ffff33;
}

.console-output .log.error {
    color: #ff3333;
}

/* 优化状态指示器 */
.optimization-status {
    position: fixed;
    top: 60px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    padding: 8px 12px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    z-index: 9998;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.optimization-status.active {
    background: rgba(0, 40, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.6);
}

.optimization-status .status-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00ff00;
    margin-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
