body {
    font-family: monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
}

.left-pane {
    width: 30%;
    border-right: 1px solid #444;
    overflow-y: auto;
    padding: 10px;
}

.right-pane {
    width: 70%;
    padding: 10px;
    overflow-y: auto;
}

#primitive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#primitive-list li {
    padding: 5px;
    cursor: pointer;
}

#primitive-list li.pinned {
    font-weight: 700;
    color: #ffda6b;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    background: #1e1e1e;
    z-index: 2;
}

#primitive-list li.selected {
    background-color: #007acc;
    color: #ffffff;
}

#details p {
    margin: 5px 0;
}

#details strong {
    color: #569cd6;
}



.btn-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eaeaea;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-pill:hover {
    background: #3a3a3a;
    border-color: #666;
}

.btn-pill:disabled,
.btn-pill[disabled] {
    color: #8a8a8a;
    background: #202020;
    border-color: #333;
    cursor: not-allowed;
}

#specifications,
#etymology-data {
    font-size: 12px;
    line-height: 1.4;
    color: #cfcfcf;
    border: 1px solid #333;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1b1b1b;
    max-width: 420px;
}

#specifications h4,
#etymology-data h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #569cd6;
    font-weight: 600;
}

#specifications ul, #etymology-data ul { list-style: none; padding: 0; margin: 0; }
#specifications li, #etymology-data li { margin: 2px 0; }
#specifications code, #etymology-data code { background: #2a2a2a; padding: 1px 4px; border-radius: 4px; }
#specifications .spec-section + .spec-section,
#etymology-data .spec-section + .spec-section { margin-top: 12px; padding-top: 8px; border-top: 1px solid #2a2a2a; }
#specifications a, #etymology-data a { color: #9cdcfe; text-decoration: none; }
#specifications a:hover, #etymology-data a:hover { text-decoration: underline; }

#readme-view a {
    color: #569cd6;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: #353535;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #007acc;
}

mark.hl {
    background: #5a5a00;
    color: #fff;
    padding: 0 2px;
}

#search-dialog {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #1e1e1e;
    border: 1px solid #444;
    padding: 10px;
    z-index: 1000;
    width: 250px;
}

#search-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-size: 14px;
}

#search-input:focus {
    outline: none;
    border-color: #007acc;
}
