.md-footer {
    display: none;
}

.md-source {
    display: none;
}

.md-header {
    background: #4772B3;
}

.md-tabs {
    background: #4772B3;
}

.md-main {
    background: #181818;
}

.md-nav .md-nav__link:hover {
    color: #67a4ff;
}

.md-nav .md-nav__link--passed {
    color: hsl(0, 0%, 37%);
}

.md-typeset a {
    color: #67a4ff;
}

.md-typeset a:hover {
    color: #9ac2ff;
}

[data-md-color-scheme="slate"] {
    --md-default-bg-color: #181818;

}


/* Override mobile drawer background */
@media screen and (max-width: 76.2344em) {
    .md-nav--primary .md-nav__title[for="__drawer"] {
        background-color: #4772B3 !important;
        /* Your custom color */
        color: white !important;
        /* Text color */
    }

    /* Optional: Change the entire mobile menu background */
    .md-nav--primary {
        background-color: #f5f5f5 !important;
        /* Light gray */
    }
}


:root {
    --md-text-font: "Inter", sans-serif;
    --md-code-font: "Inter", monospace;
    /* Optional: Use Inter for code too */
}

/* Enable optical sizing and variable font features */
body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: 'slnt' 0;
    text-rendering: optimizeLegibility;
}

/* Light text */
.md-typeset {
    font-weight: 375;
}

/* Bold headings */
.md-typeset h1 {
    font-weight: 700;
}

/* Bold headings */
.md-typeset h2 {
    font-weight: 600;
}

/* Semi-bold navigation */
.md-nav__title {
    font-weight: 700;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    /* Avoid invisible text during load */
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
}

/* Resize logo */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    width: 5rem;
    /* Default: 1.2rem */
    height: 1.5rem;
}

/* Mobile menu logo */
.md-nav__button.md-logo img,
.md-nav__button.md-logo svg {
    width: 1.8rem;
}

/* Extract what is in <style>...</style> from UI-widget.html and paste it below*/

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #2a2a2a;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    line-height: 1.4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #4a9eff;
    margin-bottom: 10px;
    font-size: 24px;
}

.description {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 14px;
}

.image-container {
    position: relative;
    display: inline-block;
    border: 2px solid #444;
    border-radius: 4px;
    overflow: hidden;
    background: #333;
}

.addon-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    background: rgba(74, 158, 255, 0.2);
    border: 2px solid transparent;
    transition: all 0.5s ease;
    border-radius: 2px;
}

.hotspot:hover {
    background: rgba(74, 158, 255, 0.4);
    border: 2px solid #4a9eff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
}

.button-hotspot {
    position: absolute;
    cursor: pointer;
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid transparent;
    transition: all 0.5s ease;
    border-radius: 2px;
}

.button-hotspot:hover {
    background: rgba(255, 193, 7, 0.4);
    border: 2px solid #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.hotspot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 0px dashed transparent;
    border-radius: 5px;
    background:
        linear-gradient(90deg, #4a9eff 60%, transparent 60%),
        linear-gradient(90deg, #4a9eff 60%, transparent 60%),
        linear-gradient(0deg, #4a9eff 60%, transparent 60%),
        linear-gradient(0deg, #4a9eff 60%, transparent 60%);
    background-size: 15px 2px, 15px 2px, 2px 15px, 2px 15px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    animation: dash-move 3s linear infinite;
    opacity: 0.8;
}

.button-hotspot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 0px dashed transparent;
    border-radius: 5px;
    background:
        linear-gradient(90deg, #ffc107 60%, transparent 60%),
        linear-gradient(90deg, #ffc107 60%, transparent 60%),
        linear-gradient(0deg, #ffc107 60%, transparent 60%),
        linear-gradient(0deg, #ffc107 60%, transparent 60%);
    background-size: 15px 2px, 15px 2px, 2px 15px, 2px 15px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    animation: dash-move 3s linear infinite;
    opacity: 0.8;
}

.hotspot:hover::after,
.button-hotspot:hover::after {
    display: none;
}

@keyframes dash-move {
    0% {
        background-position: 0 0, 0 100%, 0 0, 100% 0;
    }

    100% {
        background-position: 30px 0, -30px 100%, 0 30px, 100% -30px;
    }
}

.tooltip {
    position: fixed;
    background: #1a1a1a;
    border: 1px solid #4a9eff;
    border-radius: 6px;
    padding: 12px;
    max-width: 250px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(5px);
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.button-tooltip {
    border-color: #ffc107;
}

.button-tooltip .tooltip-title {
    color: #ffc107;
}

.tooltip-title {
    color: #4a9eff;
    font-weight: bold;
    margin-bottom: 6px;
}

.tooltip-description {
    color: #cccccc;
}

.layer-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.layer-button {
    background: #333;
    border: 2px solid #555;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.layer-button:hover {
    border-color: #4a9eff;
    background: #404040;
}

.layer-button.active {
    background: #4a9eff;
    border-color: #4a9eff;
    color: #fff;
}

.layer-description {
    color: #999;
    font-size: 13px;
    margin-left: 15px;
}

.overview-hotspots,
.detailed-hotspots {
    display: none;
}

.overview-hotspots.active,
.detailed-hotspots.active {
    display: block;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 4px solid #4a9eff;
}

.instructions h3 {
    margin-top: 0;
    color: #4a9eff;
}

.legend {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.hover-indicator {
    background: rgba(74, 158, 255, 0.3);
    border: 1px solid #4a9eff;
}

.detailed-legend {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid #ffc107;
}

.hotspot.faded,
.button-hotspot.faded {
    opacity: 0.25;
    transition: opacity 1s;
    pointer-events: none;
}

/* Documentation Components */
.side-by-side {
    display: flex;
    gap: 32px;
    align-items: start;
    margin: 32px 0;
}

.side-by-side>div {
    flex: 1;
    min-width: 0;
    /* Prevent flex items from overflowing */
}

@media (max-width: 960px) {
    .side-by-side {
        flex-direction: column;
    }
}

.md-typeset img:not(.md-logo img) {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    cursor: zoom-in;
}

.md-typeset img:not(.md-logo img):hover {
    transform: scale(1.05); /* Slightly bigger for better visual impact */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    position: relative;
}


.side-by-side table {
    margin: 0 !important;
}

.side-by-side table td {
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 0.7rem;
    /* Increased to match body text better */
    line-height: 1.6;
}
