/* Custom styles for Coco-Pack documentation */

/* Logo size and navbar branding */
.navbar-brand img {
    max-height: 60px;
}

/* Logo text styling */
.navbar-brand-text {
    font-weight: 600;
    font-size: 1.3rem;
    padding-left: 8px;
    color: var(--pst-color-primary);
}

/* Custom colors */
:root {
    --pst-color-primary: #3366cc;
    --pst-color-secondary: #cc6633;
    --pst-color-link: #3366cc;
    --pst-color-link-hover: #cc6633;
}

/* Code blocks */
div.highlight {
    border-radius: 4px;
}

/* Admonitions */
div.admonition {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Improve contrast for dark mode */
[data-theme="dark"] {
    --pst-color-primary: #6699ff;
    --pst-color-secondary: #ff9966;
    --pst-color-link: #6699ff;
    --pst-color-link-hover: #ff9966;
}

/* Better spacing for lists */
ul, ol {
    padding-left: 1em;
    margin-bottom: 1em;
}

/* Section headings */
/* h1, h2, h3, h4, h5, h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
} */

/* Hide empty search container */
.bd-search:empty, 
.bd-search:not(:has(*)),
.bd-search div:empty {
    display: none !important;
}

/* Additional selector for empty search container */
.search-button__wrapper:empty,
.search-button__wrapper:not(:has(*)) {
    display: none !important;
}