/* --- HTML Renderer --- */
.code-block-html {
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.code-block-html::after {
    content: "▶ Run";
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s, background-color 0.3s, color 0.3s;
}

.code-block-html:hover::after {
    opacity: 1;
}

.renderer-container {
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--renderer-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.renderer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--renderer-header-bg);
    border-bottom: 1px solid var(--border-medium);
    transition: background-color 0.3s;
}

.renderer-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.renderer-controls {
    display: flex;
    gap: 10px;
}

.renderer-control-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.renderer-control-button:hover {
    background-color: rgba(0,0,0,0.05);
}

.renderer-iframe-container {
    position: relative;
    width: 100%;
    height: 300px; /* Default height */
    transition: height 0.3s;
}

.renderer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}

.renderer-container.minimized .renderer-iframe-container {
    height: 0;
}