/* 代码执行容器 */
.code-exec-container {
    position: relative;
    margin: 1.5em 0;
    padding: 15px;
    border-radius: 5px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

/* 执行按钮 */
.exec-btn {
    /*position: absolute;*/
    /*top: 10px;*/
    /*right: 10px;*/
    padding: 5px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    z-index: 100;
    font-family: sans-serif;
    font-size: 14px;
}

.exec-btn:hover {
    background: #218838;
}

.exec-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 控制区域 */
.exec-controls {
    /*position: absolute;*/
    /*top: 10px;*/
    /*right: 10px;*/
    /*z-index: 100;*/
    margin-top:30px;
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/
}

/* 输入区域 */
.exec-input-area {
    margin-top: 10px;
    display: block;
     display: none;
    width: 100%;
}


.exec-input {
    height: 50px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    resize: vertical;
    min-height: 60px;
    background: #fff;
}

/* 显示输入区域 */
.code-exec-container:hover .exec-input-area,
.code-exec-container:focus-within .exec-input-area,
.exec-input-area.active {
    display: block !important;
}

/* 输出区域 */
.exec-output {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #000;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    max-height: 300px;
    overflow: auto;
}

/* 状态提示 */
.exec-status {
    color: #6c757d;
    font-style: italic;
}

.exec-result {
    text-shadow: none;
    font-size:16px;
    color: #155724;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.exec-error {
    color: #dc3545;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* 适配代码高亮 */
.code-exec-container pre,
.code-exec-container code {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 强制显示按钮（最高优先级） */
.exec-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 调试辅助 */
body:before {
    /*content: 'PythonExecutor插件已加载';*/
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 9999;
    font-size: 12px;
}


.exec-input-area {
    font-size: 16px;
    text-shadow: 16px;
    margin-top: 10px;
    display: none; /* 默认隐藏 */
}

.exec-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exec-input-group label {
    font-size: 14px;
    color: #666;
}

.exec-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.exec-input[type="text"] {
    width: 100%;
}

.exec-input-area textarea.exec-input {
    min-height: 60px;
    resize: vertical;
}











