/* Custom CSS for Clustrix documentation */

/* Code blocks */
.highlight {
    background-color: #f8f8f8;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
    padding: 8px;
}

/* Notebook cells */
.nbinput .highlight,
.nboutput .highlight {
    margin: 0;
    border: none;
    background-color: transparent;
}

/* Make tables more readable */
table.docutils {
    border: 1px solid #e1e4e5;
    border-collapse: collapse;
    margin: 1em 0;
}

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

table.docutils th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Improve admonition styling */
.admonition {
    margin: 1em 0;
    padding: 12px;
    border-left: 4px solid #ccc;
    border-radius: 4px;
}

.admonition.note {
    border-left-color: #3498db;
    background-color: #f8f9fa;
}

.admonition.warning {
    border-left-color: #f39c12;
    background-color: #fdf6e3;
}

.admonition.tip {
    border-left-color: #27ae60;
    background-color: #f0f8f0;
}

/* Badge styling */
img[alt*="badge"] {
    margin: 2px;
}

/* Colab button styling */
a[href*="colab"] {
    text-decoration: none;
    color: #F9AB00;
    font-weight: bold;
}

a[href*="colab"]:hover {
    color: #E8A317;
}

/* API documentation improvements */
.field-list {
    margin-bottom: 1em;
}

.field-list .field-name {
    font-weight: bold;
    min-width: 100px;
}

/* Source code links */
.viewcode-link {
    font-size: 0.9em;
    color: #666;
}

.viewcode-link:hover {
    color: #333;
}