/* Light theme (default) navigation font color */
[data-md-color-scheme='default'] .md-nav--secondary {
    --md-nav-link-color: #D3D3D3;
}

/* Dark theme (slate) navigation font color */
[data-md-color-scheme='slate'] .md-nav--secondary {
    --md-nav-link-color: #D3D3D3;
}

/* Example: Make the active TOC link bold */
.md-nav__link--active {
    font-weight: bold;
}

/* Bold all headings in the main content area */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    font-weight: bold;
}

:root > * {
    /* Makes the main footer background transparent */
    --md-footer-bg-color: transparent;

    /* Optional: makes the dark/bottom part of the footer transparent as well */
    --md-footer-bg-color--dark: transparent;
}

/* Ensure the text remains visible if the background behind the footer is light */
.md-footer {
    background-color: transparent;
}

.md-copyright {
    width: 100%;
    text-align: center;
}

[data-md-color-scheme='default'] {
    /* Match the primary header text */
    --md-footer-fg-color: var(--md-primary-fg-color);

    /* Match the secondary header/icon text */
    --md-footer-fg-color--light: var(--md-primary-fg-color--light);
}

[data-md-color-scheme='slate'] {
    /* Match the primary header text */
    --md-footer-fg-color: var(--md-primary-fg-color);

    /* Match the secondary header/icon text */
    --md-footer-fg-color--light: var(--md-primary-fg-color--light);
}

/* Change "Copied to clipboard" popup colors - Light mode */
[data-md-color-scheme='default'] .md-dialog {
    background-color: var(--md-primary-fg-color) !important;
    color: var(--md-primary-bg-color) !important;
}

[data-md-color-scheme='default'] .md-dialog .md-icon {
    color: var(--md-primary-bg-color) !important;
}

/* Change "Copied to clipboard" popup colors - Dark mode */
[data-md-color-scheme='slate'] .md-dialog {
    background-color: var(--md-primary-fg-color) !important;
    color: var(--md-primary-bg-color) !important;
}

[data-md-color-scheme='slate'] .md-dialog .md-icon {
    color: var(--md-primary-bg-color) !important;
}

/* TEXT EDITOR PLUGIN TEST */
#editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(var(--md-primary-fg-color--rgb), 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

#editor-modal-content {
    background: var(--md-default-bg-color);
    width: 90%;
    height: 90%;
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.floating-edit-btn {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
}
