:root {
    --sacred-gold: #DAA520;
    --sacred-blue: #1E3A8A;
    --sacred-purple: #7C3AED;
}

.hero-section {
    background: linear-gradient(135deg, var(--sacred-blue), var(--sacred-purple));
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Hyperlink styling */
a {
    text-decoration: none !important;
}

a:hover {
    color: #0066cc !important;
}

/* Sidebar styling */
.sidebar-overlay .accordion-button {
    background-color: #4d646a;
    border: none;
    font-weight: bold;
    color: white;
}

.sidebar-overlay .accordion-button:not(.collapsed) {
    background-color: #4d646a;
    color: white;
    box-shadow: none;
}

.sidebar-overlay .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.sidebar-overlay .accordion-button::after {
    filter: brightness(0) invert(1); /* Make chevron white */
}

/* Collapsible Sidebar - Overlay Style */
.sidebar-overlay.sidebar-collapsed {
    position: fixed;
    top: 66px;
    left: 0;
    width: 30px;
    height: calc(100vh - 66px - 40px); /* Extended another 5px closer to footer */
    transition: width 0.3s ease;
    overflow: hidden; /* Hide scrollbar when collapsed */
    z-index: 1050;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.sidebar-overlay.sidebar-expanded {
    position: fixed;
    top: 66px;
    left: 0;
    width: 250px;
    height: calc(100vh - 66px - 40px); /* Extended another 5px closer to footer */
    transition: width 0.3s ease;
    overflow-y: auto; /* Show scrollbar when expanded */
    overflow-x: hidden;
    z-index: 1050;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.sidebar-content {
    width: 250px;
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-content {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-expanded .sidebar-content {
    opacity: 1;
    transition: opacity 0.3s ease 0.1s;
}

.sidebar-chevron {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 1.8em;
    color: #6c757d;
    transition: transform 0.3s ease;
    z-index: 10;
}

.sidebar-collapsed .sidebar-chevron {
    transform: translateY(-50%) rotate(0deg);
}

.sidebar-expanded .sidebar-chevron {
    transform: translateY(-50%) rotate(180deg);
}
.verse-num {
    font-size: 0.8em;
    color: #888;
    margin-right: 5px;
    vertical-align: super;
}
.scripture-text {
    line-height: 1.6;
    font-size: 1.1em;
}

.scripture-text p {
    margin-bottom: 0.5rem;
}

.chapter-heading {
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}
/* Structure Styles */
.chiasmus-block {
    margin: 20px 0;
    border-left: 2px solid #eee;
    padding-left: 10px;
    background-color: #fafafa;
    border-radius: 4px;
}

.chiasmus-block div {
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
    position: relative;
    cursor: pointer;
}

.pair-id {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
    display: inline-block;
    width: 25px;
}

.pair-summary {
    display: none;
    font-size: 0.85em;
    font-style: italic;
    color: #666;
    margin-bottom: 2px;
    margin-left: 35px;
}

.show-summaries .pair-summary {
    display: block !important;
}

.pair-highlighted {
    outline: 2px solid #0d6efd !important;
    background-color: #e3f2fd !important;
    font-weight: bold !important;
}

.pair-hover-highlighted {
    background-color: #f0f8ff !important;
    font-weight: bold;
}

/* Level indentation */
.level-a { margin-left: 0; }
.level-b { margin-left: 20px; }
.level-c { margin-left: 40px; }
.level-d { margin-left: 60px; }
.level-e { margin-left: 80px; }
.level-f { margin-left: 100px; }
.level-g { margin-left: 120px; }
.level-h { margin-left: 140px; }

/* Color mode */
.color-mode .level-a { background-color: #ffcccc; }
.color-mode .level-b { background-color: #ffe0b3; }
.color-mode .level-c { background-color: #ffffcc; }
.color-mode .level-d { background-color: #ccffcc; }
.color-mode .level-e { background-color: #cce0ff; }
.color-mode .level-f { background-color: #e0ccff; }
.color-mode .level-g { background-color: #ffccff; }
.color-mode .level-h { background-color: #e6e6e6; }

.center-theme-btn {
    cursor: pointer;
    color: #0d6efd;
    margin-left: 5px;
    font-size: 0.9em;
}

/* Fix button hover text color */
.btn-primary:hover {
    color: white !important;
}

#center-theme-content {
    margin-left: 160px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: none;
}
/* Pair Preview Styles */
.pair-preview {
    margin: 8px 0;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px dashed #6c757d;
    border-radius: 4px;
    font-style: italic;
}

.pair-preview-content {
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
    position: relative;
}

.preview-label {
    display: block;
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 4px;
    font-weight: normal;
}
/* Sidebar Indicators */
.indicators-sidebar {
    width: 20px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.indicator-bar {
    width: 8px;
    background-color: #0d6efd;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    left: 5px;
    transition: top 0.3s, height 0.3s, width 0.2s;
}

.indicator-bar:hover {
    width: 12px;
    left: 3px;
}

/* Tooltip for Indicator */
.indicator-bar::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    display: none;
    z-index: 10;
    margin-left: 5px;
}

.indicator-bar:hover::after {
    display: block;
}
