/* docs/_static/custom.css */

/* Code block styling */
div[class^="highlight"] pre {
    padding: 1em;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Improve code readability */
code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    background: #f1f3f5;
}

/* Make headings stand out more */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a1a1a;
}

/* Improve table readability */
table.docutils {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

table.docutils td, table.docutils th {
    padding: 8px;
    border: 1px solid #ddd;
}

table.docutils th {
    background-color: #f5f5f5;
}

/* Add more visual hierarchy to the sidebar */
.wy-menu-vertical li.current > a {
    background-color: #e3efff;
}

.wy-menu-vertical li.current > a span.toctree-expand {
    color: #2980B9;
}

/* Improve note and warning boxes */
.admonition {
    padding: 12px;
    margin: 20px 0;
    border-left: 4px solid #2980B9;
    background-color: #f8f9fa;
}

.admonition.warning {
    border-left-color: #E74C3C;
}

.admonition.note {
    border-left-color: #27AE60;
}

/* Make code copy button more visible */
.copybutton {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.copybutton:hover {
    opacity: 1;
}

/* Improve API documentation layout */
dl.py.method, dl.py.class, dl.py.function {
    padding: 1em;
    margin: 1em 0;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* Better visibility for parameter lists */
.field-list {
    border-left: 2px solid #e9ecef;
    padding-left: 1em;
    margin: 1em 0;
}

/* Improve search box appearance */
.wy-side-nav-search input[type="text"] {
    border-radius: 4px;
    padding: 8px 12px;
    border-color: #e9ecef;
}
