/* Make right sidebar invisible but keep it as white space/padding */
.bd-sidebar-secondary {
    visibility: hidden !important;
    background: white !important;
}

/* Hide all content inside the right sidebar */
.bd-sidebar-secondary * {
    display: none !important;
}

/* Hide theme toggle button */
.theme-switch-button,
button[title*="light"],
button[title*="dark"],
button[title*="theme"],
.bd-header .theme-switcher {
    display: none !important;
}

/* Keep original layout spacing since sidebar is still there as white space */

/* Make left sidebar wider (about 50% increase) without creating gaps */
.bd-sidebar-primary {
    width: 375px !important;
    min-width: 375px !important;
    flex: 0 0 375px !important;
}

/* Ensure main content flows right next to sidebar without gap */
.bd-main {
    margin-left: 0 !important;
}

/* When sidebar is hidden, expand main content to full width */
.bd-container.hide-primary .bd-main {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.bd-container.hide-primary .bd-article-container {
    max-width: none !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bd-sidebar-primary {
        width: 320px !important;
        min-width: 320px !important;
        flex: 0 0 320px !important;
    }
}

@media (max-width: 768px) {
    .bd-sidebar-primary {
        width: 280px !important;
        min-width: 280px !important;
        flex: 0 0 280px !important;
    }
}


/* Force light theme */
html[data-theme="dark"],
html[data-theme="auto"] {
    filter: none !important;
}

html {
    color-scheme: light !important;
}

body {
    background-color: white !important;
    color: #212529 !important;
}

/* Main content styling */
.bd-article-container {
    color: #515151;
    font-family: "PT Sans", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5em;
    letter-spacing: 0.2px;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 1rem !important;
}

/* Adjust main container layout */
.bd-container {
    padding-top: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .bd-article-container {
        font-size: 14px;
        padding: 0 0.5rem;
    }
    
    .pymoo-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bd-article-container {
        padding: 0 0.25rem;
    }
}

/* Sidebar buttons styling */
.pymoo-sidebar-buttons {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.pymoo-social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pymoo-icon {
    width: 32px;
    height: 32px;
    color: #6c757d !important;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.pymoo-icon:hover {
    color: #495057 !important;
    text-decoration: none !important;
}

.pymoo-icon svg {
    width: 100%;
    height: 100%;
}

.pymoo-version {
    font-weight: bold;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

/* Basic styling */
.nav a {
    color: #5a5a5a !important;
}

.portfolio-heading {
    font-weight: 400;
    font-size: 1.44em;
    font-family: Open Sans, sans-serif;
    line-height: 1.15;
    padding: 0.2em 0;
}

.portfolio-heading a {
    text-decoration: none;
    color: black !important;
}

.my-table {
    margin: 10px 0px;
    font-size: 12.5px;
    width: 80%;
}

.new-flag {
    height: 2em;
    display: inline;
    vertical-align: text-top;
}

strong, b {
    font-weight: 700 !important;
}

.bd-article-container a {
    color: #007bff;
    text-decoration: none;
}

.bd-article-container a:hover {
    text-decoration: underline;
}

.bd-article-container table tbody tr:hover {
    background-color: #e3f2fd !important;
    transition: background-color 0.2s ease;
}

.footer {
    border: 0 !important;
}

.tocsection {
    border-left: 0 !important;
    padding-top: 1em !important;
}

.section-nav {
    border-left: 0 !important;
}

