/* Custom styling for torchTextClassifiers documentation with pydata-sphinx-theme */

/* Improve code block styling */
div.highlight {
    border-radius: 6px;
    border: 1px solid var(--pst-color-border);
    margin: 1em 0;
}

div.highlight pre {
    padding: 12px;
    overflow-x: auto;
}

/* Better admonition styling */
.admonition {
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.admonition-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Improve table styling */
table.docutils {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

table.docutils td,
table.docutils th {
    border: 1px solid var(--pst-color-border);
    padding: 0.5rem;
}

table.docutils th {
    background-color: var(--pst-color-surface);
    font-weight: 600;
}

/* Navigation improvements */
.bd-sidebar {
    font-size: 0.9rem;
}

.bd-sidebar .nav-link {
    padding: 0.25rem 0.5rem;
}

/* Logo text styling */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Improve inline code styling */
code.docutils.literal {
    background-color: var(--pst-color-surface);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Better spacing for content */
.bd-content {
    padding: 2rem;
}

/* Improve heading spacing */
.bd-content h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pst-color-border);
}

.bd-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.bd-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Cards and grids (from sphinx-design) */
.sd-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.sd-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Improve footer spacing */
footer.bd-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pst-color-border);
}

/* Better responsive images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Improve API documentation layout */
dl.py.class,
dl.py.function,
dl.py.method {
    margin-bottom: 2rem;
}

dt.sig {
    background-color: var(--pst-color-surface);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--pst-color-primary);
}

dd {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

/* Parameter list styling */
dl.field-list {
    margin-top: 1rem;
}

dl.field-list dt {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

dl.field-list dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}
