/* Custom styles for card logos */
.card-logo {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Alternative: larger logo style */
.card-logo-large {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 16px auto;
}

/* Card styling with rounded corners */
.md-typeset .grid.cards > ol > li,
.md-typeset .grid.cards > ul > li {
    border-radius: 8px; /* Slightly rounded corners */
    transition: all 0.2s ease-in-out; /* Smooth hover effect */
    background-color: #fafafa; /* Light background for cards */
}

/* Increase spacing between cards */
.md-typeset .grid.cards {
    gap: 1.25rem !important; /* More horizontal and vertical spacing */
}

/* Optional: subtle hover effect for cards */
.md-typeset .grid.cards > ol > li:hover,
.md-typeset .grid.cards > ul > li:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 12px rgba(9, 28, 30, 0.15); /* Subtle shadow */
}

/* Button styling with rounded corners */
.md-button {
    border-radius: 8px !important; /* Rounded corners for buttons */
    transition: all 0.2s ease-in-out !important; /* Smooth transitions */
    padding: 0.25rem 0.8rem !important; /* Slimmer buttons */
    line-height: 1.4 !important; /* Decrease line height for thinner appearance */
    border-width: 0.0625rem !important; /* Thinner border */
}

/* Enhanced button hover effects */
.md-button:hover {
    transform: translateY(-1px) !important; /* Slight lift on hover */
    box-shadow: 0 2px 8px rgba(9, 28, 30, 0.2) !important; /* Subtle shadow */
    background-color: #091c1e !important; /* Use header dark color on hover */
    border-color: #091c1e !important; /* Match border color */
}

/* Increase page width */
.md-grid {
    max-width: 92rem; /* Expanded overall width */
}

/* Custom menu bar color */
:root {
    --md-primary-fg-color: #091c1e;
    --md-primary-fg-color--light: #0f2c30;
    --md-primary-fg-color--dark: #051315;
}

/* Override Material theme primary colors */
[data-md-color-scheme="default"] {
    --md-primary-fg-color: #091c1e;
    --md-primary-fg-color--light: #0f2c30;
    --md-primary-fg-color--dark: #051315;
}

[data-md-color-scheme="slate"] {
    --md-primary-fg-color: #091c1e;
    --md-primary-fg-color--light: #0f2c30;
    --md-primary-fg-color--dark: #051315;
}

/* Custom logo styling - increased size */
.md-header__button.md-logo {
    margin: 0.2rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    height: 1.8rem; /* Reduced size */
    width: auto;
}

/* Custom site title styling */
.md-header__title {
    font-size: 0.84rem; /* Reduced font size */
    font-weight: 600;
}

.md-header__title .md-header__ellipsis {
    font-size: 0.84rem;
}

/* Override header title text */
.md-header__title .md-header__ellipsis::after {
    content: "Documentation"; /* Custom header title */
    font-size: 0.84rem;
}

/* Hide the original site name in header */
.md-header__title .md-header__ellipsis {
    font-size: 0; /* Hide original text */
}

/* Remove search from header */
.md-search {
    display: none !important;
}

/* Hide Material for MkDocs footer */
.md-footer-meta {
    display: none !important;
}

/* Style header social links (GitHub) */
.md-header__source {
    width: auto;
}

.md-social {
    padding: 0 0.2rem;
}

.md-social__link {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    text-align: center;
    border-radius: 100%;
    transition: all 0.2s ease-in-out;
}

.md-social__link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.md-social__link svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Hide the entire footer if you prefer */
/* 
.md-footer {
    display: none !important;
}
*/

/* Hide left sidebar globally */
.md-sidebar--primary {
    display: none;
}

/* Adjust main content to use full width when sidebar is hidden */
.md-main__inner {
    margin-left: 0;
}

.md-content {
    margin-left: 0;
}

/* Constrain header content width to exactly match main content */
.md-header__inner {
    max-width: 92rem; /* Same as .md-grid max-width */
    margin: 0 auto;
    padding-left: 8.8rem; /* Match total main content spacing: 5rem + 3.8rem */
    padding-right: 8.8rem; /* Match total main content spacing: 5rem + 3.8rem */
}

/* Constrain navigation tabs width - more aggressive approach */
.md-tabs {
    background-color: var(--md-primary-fg-color);
}

/* Override the entire tabs container */
.md-tabs__inner {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Create a new constrained container inside */
.md-tabs__list {
    max-width: 92rem !important;
    margin: 0 auto !important;
    padding-left: 8.8rem !important; /* Match header: 5rem + 3.8rem */
    padding-right: 8.8rem !important; /* Match header: 5rem + 3.8rem */
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

/* Alternative approach: constrain the entire tabs section */
.md-tabs__inner::before {
    content: '';
    display: block;
}

.md-tabs__inner {
    display: flex !important;
    justify-content: center !important;
}

.md-tabs__list {
    max-width: 92rem !important;
    width: 100% !important;
    padding-left: 8.8rem !important; /* Match header: 5rem + 3.8rem */
    padding-right: 8.8rem !important; /* Match header: 5rem + 3.8rem */
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Hide navigation tabs bar */
.md-tabs {
    display: none !important;
}

/* Add horizontal padding to main content */
.md-main {
    padding-left: 5rem; /* Reduced padding to widen content */
    padding-right: 5rem; /* Reduced padding to widen content */
}

/* Add padding to the content container */
.md-content__inner {
    padding-left: 3.8rem; /* Reduced padding to widen content */
    padding-right: 3.8rem; /* Reduced padding to widen content */
}

/* Responsive spacing - reduce on smaller screens - maintain alignment */
@media screen and (max-width: 76.1875em) {
    .md-header__inner {
        padding-left: 5rem !important; /* Match main content total: 2.5rem + 2.5rem */
        padding-right: 5rem !important; /* Match main content total: 2.5rem + 2.5rem */
    }
    
    .md-tabs__list {
        padding-left: 5rem !important; /* Match header and content */
        padding-right: 5rem !important; /* Match header and content */
    }
    
    .md-main {
        padding-left: 2.5rem; /* Scaled with reduced padding */
        padding-right: 2.5rem; /* Scaled with reduced padding */
    }
    
    .md-content__inner {
        padding-left: 2.5rem; /* Scaled with reduced padding */
        padding-right: 2.5rem; /* Scaled with reduced padding */
    }
}

@media screen and (max-width: 44.9375em) {
    .md-header__inner {
        padding-left: 2.5rem !important; /* Match main content total: 1.25rem + 1.25rem */
        padding-right: 2.5rem !important; /* Match main content total: 1.25rem + 1.25rem */
    }
    
    .md-tabs__list {
        padding-left: 2.5rem !important; /* Match header and content */
        padding-right: 2.5rem !important; /* Match header and content */
    }
    
    .md-main {
        padding-left: 1.25rem; /* Scaled with reduced padding */
        padding-right: 1.25rem; /* Scaled with reduced padding */
    }
    
    .md-content__inner {
        padding-left: 1.25rem; /* Scaled with reduced padding */
        padding-right: 1.25rem; /* Scaled with reduced padding */
    }
}

/* Alternative: even wider option */
/* 
.md-grid {
    max-width: 90rem; // For 1440px width
}
*/
