/* MODIFICARE 5 — stiluri pentru rularea programelor C++ din pagină. */
.cpp-runner {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.cpp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.cpp-status {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--green);
    font-size: 15px;
    line-height: 1.7;
}
.cpp-status:empty {
    display: none;
}
.cpp-status.cpp-error {
    border-left-color: var(--orange);
}
.cpp-result {
    margin-top: 14px;
}
.cpp-drawing {
    margin: 0 0 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}
.cpp-drawing img {
    max-width: 100%;
    max-height: 520px;
}
.cpp-drawing figcaption {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}
.cpp-console-title {
    display: block;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
pre.cpp-console {
    margin: 0;
    padding: 12px 14px;
    max-height: 460px;
    overflow: auto;
    background: #1e2521;
    color: #e8e5da;
    font-size: 12px;
    line-height: 1.35;
    white-space: pre;
}
.cpp-editor {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    tab-size: 4;
    resize: vertical;
    border-radius: 0;
}
.cpp-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
@media (max-width: 760px) {
    pre.cpp-console {
        font-size: 10px;
    }
    .cpp-editor {
        font-size: 12px;
    }
}
@media print {
    .cpp-actions,
    .cpp-note,
    .cpp-editor {
        display: none !important;
    }
}

/* Elementele ascunse rămân ascunse, chiar dacă au „display” setat mai sus. */
.cpp-editor[hidden],
.cpp-runner [hidden] {
    display: none !important;
}
