/* ==========================================================================
   Canvas & Empty States
   ========================================================================== */
#canvas-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

canvas.emscripten {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    border: none;
}

/* Empty State Styling */
#empty-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9;
    display: flex;
    align-items: flex-start; /* Fixes the top-clipping overflow bug */
    justify-content: center;
    padding: 32px;
    overflow-y: auto;
}

.empty-state-content {
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.empty-card-header {
    text-align: center;
}

.empty-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-card-header .subtitle {
    color: var(--text-secondary);
    font-size: 14.5px;
}

/* Minimalist Typographic 2x2 Grid Layout */
.empty-state-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    row-gap: 32px;
    width: 100%;
    text-align: left;
}

.example-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.example-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.example-links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.example-link-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    margin-left: -12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: fit-content;
}

.example-link-item:hover {
    color: var(--accent);
    background-color: var(--accent-light);
    transform: translateX(4px);
}

.expr-text {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.expr-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

