/* Extra CSS for MkDocs Material */

/* Wide layout for better content display */
.md-grid {
    max-width: 1400px;
}

/* Navigation improvements */
/* Hide expand icon for items without children */
.md-nav__item--section > .md-nav__link:not(.md-nav__link--index)::after {
    display: none;
}

/* Style section index links differently */
.md-nav__link--index {
    font-weight: 500;
}

/* Make regular pages more subtle */
.md-nav__item:not(.md-nav__item--section) .md-nav__link {
    font-weight: 400;
    opacity: 0.9;
}

/* Code blocks - single background, no nested boxes or overlays */
.highlight {
    border-radius: 4px;
    margin: 1em 0;
    background-color: var(--md-code-bg-color);
}

.highlight pre {
    padding: 1rem !important;
    margin: 0;
    background-color: var(--md-code-bg-color) !important;
}

/* Remove all nested backgrounds */
.highlight pre code,
.highlight code,
.md-code__content {
    background-color: transparent !important;
}

/* Remove gray overlays on code spans - this fixes the unreadable text */
.highlight span {
    background-color: transparent !important;
}

.linenos {
    background-color: transparent !important;
}

/* Custom table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th {
    background-color: var(--md-primary-fg-color--light);
    color: white;
    padding: 0.75rem;
    text-align: left;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* Custom badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: bold;
}

.badge-green {
    background-color: #4caf50;
    color: white;
}

.badge-yellow {
    background-color: #ff9800;
    color: white;
}

.badge-red {
    background-color: #f44336;
    color: white;
}

.badge-blue {
    background-color: #2196f3;
    color: white;
}

/* Enhanced admonitions */
.admonition {
    border-left: 4px solid;
    border-radius: 4px;
}

/* Fix nested admonitions - reduce color intensity */
.admonition .admonition {
    background-color: transparent;
    border-left-width: 2px;
    opacity: 0.95;
}

/* Make nested admonitions even more subtle */
.admonition .admonition .admonition {
    border-left-width: 1px;
    opacity: 0.9;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}
