/* Custom styling for SMF docs */

:root {
    --sidebar-width: 300px;
    --page-padding: 15px;
    --content-max-width: 900px;
    --search-highlight: #ffd700;
}

/* Improve code block styling */
pre {
    padding: 1em;
    border-radius: 4px;
}

/* Style for option descriptions */
dt {
    font-weight: 600;
    margin-top: 1em;
}

dd {
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Improve table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

th, td {
    border: 1px solid var(--table-border-color);
    padding: 0.5em;
    text-align: left;
}

th {
    background-color: var(--table-header-bg);
    font-weight: 600;
}

/* Style admonitions */
.warning, .note {
    padding: 1em;
    margin: 1em 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.note {
    background-color: #d1ecf1;
    border-color: #0c5460;
}

/* Highlight search link in menu */
a[href$="/search/index.html"] {
    font-weight: 600;
    color: var(--links);
}

a[href$="/search/index.html"]::before {
    content: "🔍 ";
}

/* Style for search page iframe */
iframe {
    border: none;
    width: 100%;
    min-height: 600px;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 250px;
    }
}
