/* Custom styles for SPEX documentation - Light Theme Only */

/* FORCE LIGHT THEME - OVERRIDE ANY DARK STYLES */
body,
.md-main,
.md-main__inner,
.md-content,
.md-content__inner,
.md-typeset,
.md-typeset *,
.doc,
.doc *,
.doc-contents,
.doc-contents *,
.doc-function,
.doc-function *,
.doc-function-signature,
.doc-function-signature *,
.doc-contents .doc-function-signature,
.doc-contents .doc-function-signature * {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Force light background for all content areas */
.md-content__inner,
.md-typeset,
.doc-contents,
.doc-function,
.doc-function-signature,
.doc-contents .doc-function-signature {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Force light background for all text elements */
.md-typeset p,
.md-typeset div,
.md-typeset span,
.md-typeset li,
.doc-contents p,
.doc-contents div,
.doc-contents span,
.doc-contents li,
.doc-function p,
.doc-function div,
.doc-function span,
.doc-function li {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Force light code blocks */
.md-typeset pre {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a1a1a !important;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.md-typeset code {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
}

/* Force light tables */
.md-typeset table {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

.md-typeset table th {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.md-typeset table td {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Force light headings */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    color: #1a1a1a !important;
}

/* Force light navigation */
.md-nav__link {
    color: #1a1a1a !important;
}

.md-nav__title {
    color: #1a1a1a !important;
}

/* Force light search */
.md-search__input {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
    border: 1px solid #e0e0e0 !important;
}

.md-search__input::placeholder {
    color: #999999 !important;
}

/* Force light sidebar */
.md-sidebar {
    background-color: #f8f9fa !important;
}

/* Force light admonitions */
.md-typeset .admonition {
    background-color: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    border-left: 4px solid #3f51b5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.md-typeset .admonition-title {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
    font-weight: 600;
    padding: 12px 16px;
}

/* Force light buttons */
.md-button {
    background-color: #3f51b5 !important;
    color: white !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.md-button:hover {
    background-color: #5c6bc0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Force light links */
.md-typeset a {
    color: #3f51b5 !important;
}

.md-typeset a:hover {
    color: #5c6bc0 !important;
    text-decoration: underline;
}

/* Force light syntax highlighting */
.highlight {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
}

.highlight .hll {
    background-color: #ffeb3b !important;
}

/* Force light copy button */
.md-clipboard {
    color: #666666 !important;
}

.md-clipboard:hover {
    color: #3f51b5 !important;
}

/* Force light API documentation */
.doc-function-signature {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    color: #1a1a1a !important;
}

/* Force light function description */
.doc-function .doc-function-docstring {
    background-color: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
}

/* Force light source code links */
.doc-function .doc-function-source {
    color: #666666 !important;
    font-size: 0.9em;
}

.doc-function .doc-function-source a {
    color: #3f51b5 !important;
}

/* Force light parameter tables */
.md-typeset table td:nth-child(1) {
    font-weight: 600;
    color: #3f51b5 !important;
}

.md-typeset table td:nth-child(2) {
    color: #1a1a1a !important;
    font-style: italic;
}

.md-typeset table td:nth-child(3) {
    color: #666666 !important;
    font-style: italic;
}

/* Force light inline code in tables */
.md-typeset table code {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
    border: none;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Force light task lists */
.md-typeset .task-list-item {
    list-style-type: none;
}

.md-typeset .task-list-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Force light tabbed content */
.md-typeset .tabbed-set {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    overflow: hidden;
}

.md-typeset .tabbed-set > input {
    display: none;
}

.md-typeset .tabbed-set > label {
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.md-typeset .tabbed-set > label:hover {
    background-color: #f8f9fa !important;
}

.md-typeset .tabbed-set > input:checked + label {
    background-color: #3f51b5 !important;
    color: white !important;
}

.md-typeset .tabbed-content {
    background-color: #ffffff !important;
    padding: 16px;
}

/* Force light mermaid diagrams */
.mermaid {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

/* Force light math equations */
.md-typeset .arithmatex {
    background-color: #f5f5f5 !important;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 0;
}

/* Force light emoji */
.md-typeset .emoji {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Force light keyboard shortcuts */
.md-typeset kbd {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.85em;
    color: #1a1a1a !important;
}

/* Force light code annotation */
.md-typeset .annotate {
    background-color: #ffeb3b !important;
    color: #1a1a1a !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Force light custom admonition styles */
.md-typeset .admonition.tip {
    border-left-color: #4caf50 !important;
}

.md-typeset .admonition.warning {
    border-left-color: #ff9800 !important;
}

.md-typeset .admonition.info {
    border-left-color: #2196f3 !important;
}

.md-typeset .admonition.note {
    border-left-color: #9c27b0 !important;
}

/* Force light responsive design */
@media (max-width: 768px) {
    .md-typeset pre {
        padding: 12px;
        margin: 12px 0;
    }
    
    .md-typeset .admonition {
        margin: 12px 0;
    }
}

/* Force light print styles */
@media print {
    .md-typeset {
        background-color: white !important;
        color: black !important;
    }
    
    .md-typeset pre,
    .md-typeset code {
        background-color: #f5f5f5 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}
