/* Custom CSS for better API documentation formatting */

/* Improve parameter lists in docstrings */
.doc-section-body ul {
    margin: 0.5em 0;
}

.doc-section-body li {
    margin: 0.25em 0;
    padding: 0.25em 0;
}

/* Style parameter names */
.doc-section-body li strong:first-child {
    color: #2563eb;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
}

/* Improve code blocks in parameter descriptions */
.doc-section-body li code {
    background-color: rgba(156, 163, 175, 0.2);
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
    font-size: 0.875em;
}

/* Better formatting for parameter types */
.doc-section-body li em {
    color: #059669;
    font-style: normal;
    font-weight: 500;
}

/* Improve signature display */
.doc-signature {
    background-color: rgba(31, 41, 55, 0.05);
    border-radius: 0.5em;
    padding: 1em;
    margin: 1em 0;
    overflow-x: auto;
}

/* Style attribute sections */
.doc-attribute-list {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.doc-attribute {
    display: table-row;
    border-bottom: 1px solid rgba(156, 163, 175, 0.3);
}

.doc-attribute-name,
.doc-attribute-type,
.doc-attribute-description {
    display: table-cell;
    padding: 0.75em 1em;
    vertical-align: top;
}

.doc-attribute-name {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 600;
    color: #2563eb;
    width: 25%;
}

.doc-attribute-type {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #059669;
    width: 20%;
    font-size: 0.875em;
}

.doc-attribute-description {
    width: 55%;
}

/* Improve class and function headers */
.doc-heading {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

/* Better spacing for sections */
.doc-section {
    margin: 1.5em 0;
}

.doc-section-title {
    font-size: 1.125em;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5em;
    padding: 0.5em 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Improve table formatting for parameters */
.doc-parameters-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.doc-parameters-table th,
.doc-parameters-table td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.doc-parameters-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.doc-parameters-table td:first-child {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #2563eb;
    font-weight: 500;
}

.doc-parameters-table td:nth-child(2) {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #059669;
    font-size: 0.875em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .doc-attribute-name,
    .doc-attribute-type,
    .doc-attribute-description {
        display: block;
        width: 100%;
        padding: 0.5em 1em;
    }
    
    .doc-attribute-name {
        background-color: #f9fafb;
        font-weight: 600;
    }
    
    .doc-attribute-type {
        font-style: italic;
        color: #6b7280;
    }
}
