/* Examples */

.example {
    border-radius: 10px;
    padding: 30px;
    display: inline-block;
    line-height: initial;
    margin: 16px 0;
    border: 1px solid #ccc;
}

.example input[type="button"], .example .button a {
    border: 2px solid #737373;
    background-color: #737373;
    margin-right: 2px;
    color: #fff;
    padding: 6px 12px;
    font-weight: normal;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: unset;
}

.example select, .example input {
    border: 1px solid #ccc;
    padding: 6px 12px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background-color: #fff;
    font-size: 1em;
    line-height: initial;
    border-radius: 2px;
    cursor: pointer;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Playground */

.playground {
    width: 100%;
    align-items: start;
}

.playground.row.gap {
    gap: 32px;
}

.playground ul {
    list-style: none;
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.playground li[data-category]::before {
    content: attr(data-category);
    display: block;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 14px;
}

.playground li {
    margin: 2px ;
    padding: 0;
}

.playground li a {
    margin-left: 16px;
    padding: 4px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    color: var(--gray-900);
    text-decoration: none;
    border-left: 1px solid transparent;
    transition: all 0.2s;
}

.playground li a:hover {
    background-color: var(--gray-50);
}

.playground li a.selected {
    font-weight: normal !important;
    background-color: var(--gray-50);
    border-left-color: var(--color-brand) !important;
    padding-left: 12px;
}

.ace-editor-playground {
    width: 100%;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}

.language-playground {
    display: none !important;
}

.playground [data-ref="console"] {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--gray-50);
    border: none;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.playground [data-ref="console"]:empty::before {
    content: 'Console output will appear here...';
    color: var(--gray-300);
    font-style: italic;
}

.playground [data-ref="result"] {
    padding: 15px;
    border: none;
    min-height: 150px;
    background-color: #fff;
}


/* Playground Tabs */

.playground-tab-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.playground-tab-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.playground-tab-btn:hover {
    opacity: 0.7;
}

.playground-tab-btn.active {
    opacity: 1;
}

.playground-editor-container {
    width: 100%;
}

/* Playground Screens Wrapper */

.playground-screens-wrapper {
    display: flex;
    gap: 0;
    border: 2px solid var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.playground-editor-screen {
    border-right: 2px solid var(--gray-50);
    padding: 20px;
}

.playground-result-screen {
    background-color: #fff;
}