/* SLATE Documentation Custom Styles */

/* Code block styling */
.highlight pre {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Math equation styling */
.math {
    font-size: 1.1em;
}

/* Table styling improvements */
table.docutils {
    width: 100%;
    border-collapse: collapse;
}

table.docutils th {
    background-color: #e7e9ed;
    font-weight: bold;
    padding: 8px;
}

table.docutils td {
    padding: 8px;
    vertical-align: top;
}

/* API reference styling */
dl.cpp dt {
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-left: 4px solid #2980B9;
    margin-top: 12px;
}

dl.cpp dd {
    margin-left: 20px;
    margin-top: 8px;
}

/* Note/Warning box styling */
.admonition {
    border-radius: 4px;
}

.admonition-title {
    font-weight: bold;
}

/* Sidebar navigation improvements */
.wy-nav-side {
    background: #343131;
}

.wy-side-nav-search {
    background-color: #2980B9;
}

/* Code inline styling */
code.literal {
    background-color: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Function signature styling */
.sig-name {
    font-weight: bold;
    color: #2980B9;
}

/* Badge styling for new/deprecated features */
.badge-new {
    background-color: #27ae60;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 5px;
}

.badge-deprecated {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 5px;
}

/* Matrix hierarchy figure styling */
.matrix-hierarchy img {
    max-width: 100%;
    margin: 20px auto;
    display: block;
}

/* Algorithm/code listing box */
.algorithm-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.algorithm-box .algorithm-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

/* Improve readability of long parameter lists */
dl.field-list > dt {
    font-weight: 600;
}

dl.field-list > dd {
    margin-left: 1em;
    margin-bottom: 0.5em;
}

/* Section headers */
h1 {
    border-bottom: 2px solid #2980B9;
    padding-bottom: 10px;
}

h2 {
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 8px;
}

/* Responsive tables */
@media screen and (max-width: 768px) {
    table.docutils {
        display: block;
        overflow-x: auto;
    }
}
