@font-face {
    font-family: 'SBL Hebrew';

    src: local("SBL Hebrew"), local("SBLHebrew"),
         url(/src/fonts/SBLHebrew.woff2) format("woff2"),
         url(/src/fonts/SBLHebrew.woff) format("woff"),

         url(https://www.hebcal.com/i/SBLHebrew-1.56a.woff2) format("woff2"),
         url(https://www.hebcal.com/i/SBLHebrew-1.56a.woff) format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: fallback;
}
/* Tree structure styles */
.tree-node {
    margin: 10px 20px;
}

/* Results container */
#resultsArea {
    min-height: 200px;
}

/* Form elements */
.form-check-input {
    border-color: lightgreen;
    margin-left: 10px;
}

/* Menu styles */
.menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
    direction: ltr;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

/* Dark theme support for menu dropdown */
:root[data-theme="dark"] .menu-dropdown {
    background: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

:root[data-theme="dark"] .menu-item {
    color: #f8f9fa;
}

:root[data-theme="dark"] .menu-item:hover {
    background-color: #495057;
}

/* Gear icon */
#menuToggle {
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
}

#menuToggle:hover {
    color: #0d6efd;
}

:root[data-theme="dark"] #menuToggle {
    color: #f8f9fa;
}

:root[data-theme="dark"] #menuToggle:hover {
    color: #0dcaf0;
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Hebrew text */
.hebrew-text {
    font-family: "SBL Hebrew", serif;
    font-size: 1.2em;
    direction: rtl;
}

/* Citation styles */
.citation-card {
    transition: background-color 0.2s ease;
    border: 1px solid rgba(0,0,0,.125);
    margin: 4px;
}

.citation-card:hover {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hebrew-text {
        font-size: 1rem;
    }
    
    .table td {
        font-size: 0.9rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Button container */
#buttonContainer {
    padding-right: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

#buttonContainer button {
    margin: 10px;
}

/* Results display */
#summaryText {
    font-size: 1.1em;
    margin-bottom: 1rem;
}

/* Modal customization */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Tree container customization */
#treeContainer {
    margin-top: 1rem;
}

/* Trope sequence display */
.trope-sequence {
    font-family: "SBL Hebrew", serif;
    font-size: 1.5em;
    direction: rtl;
}
    #bookSelect option:disabled {
        color: #6c757d;
        font-style: italic;
    }