/* Beamer+ Shared Styles */
@font-face {
    font-family: "Computer Modern Sans";
    src: url("https://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf");
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fcfcfc;
    font-family: "Computer Modern Sans", sans-serif;
}

/* Utility classes */
input[type=file] {
    display: none;
}

/* Slide Navigator — left side by default (singular view) */
#slide-navigator {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 75px;
    height: auto;
    background: #ddd;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    padding: 0 0 10px 0;
    border-right: 2px solid #666;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#slide-navigator::-webkit-scrollbar {
    display: none;
}

.slide-nav-item {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    margin: 8px auto;
    background: #eee;
    border: 2px solid #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    font-family: "Computer Modern Sans", sans-serif;
}

.slide-nav-item:hover {
    background: #ccc;
    border-color: #444;
}

.slide-nav-item.active {
    background: #bbb;
    border-color: #333;
    color: #000;
    font-weight: 700;
}

/* Right slide navigator — bottom right, hidden by default */
#slide-navigator-right {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 75px;
    width: calc(50% - 10px);
    background: #ddd;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 100;
    padding: 0 10px;
    border: 2px solid #666;
    display: none;
    flex-direction: row;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#slide-navigator-right::-webkit-scrollbar {
    display: none;
}

#slide-navigator-right .slide-nav-item {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    margin: 0 4px;
    background: #eee;
    border: 2px solid #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    font-family: "Computer Modern Sans", sans-serif;
}

#slide-navigator-right .slide-nav-item:hover {
    background: #ccc;
    border-color: #444;
}

#slide-navigator-right .slide-nav-item.active {
    background: #bbb;
    border-color: #333;
    color: #000;
    font-weight: 700;
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .custom-modal-overlay,
    .modal-overlay,
    #control-panel {
        display: none !important;
    }
}



/* ── Bookmark system ─────────────────────────────── */

#bookmark-pins {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ddd;
    padding: 10px 0 4px;
    border-bottom: 2px solid #aaa;
}

.slide-nav-item.bookmarked {
    background: #e8c84a;
    border-color: #b8941a;
    color: #3a2a00;
}

.slide-nav-item.bookmarked:hover {
    background: #d4b030;
    border-color: #8a6c0e;
}

.slide-nav-item.active.bookmarked {
    background: #c9a828;
    border-color: #7a5c08;
}

#bookmark-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: "Computer Modern Sans", sans-serif;
    white-space: nowrap;
    z-index: 500;
    pointer-events: none;
    transform: translateY(-50%);
    display: none;
}

.bookmark-input {
    width: 85%;
    background: #fff;
    border: 1px solid #666;
    border-radius: 2px;
    font-size: 12px;
    font-family: "Computer Modern Sans", sans-serif;
    text-align: center;
    padding: 2px 3px;
    outline: none;
    color: #333;
}

body.split-view-active #bookmark-pins {
    display: none !important;
}
