#bible-wrapper {
    display: flex;
    min-height: 100vh;
}
.bible-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #990000;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    z-index: 1000;
}
.bible-header select,
.bible-header input,
.bible-header button {
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    font-size: 0.9em;
}
#sidebar {
    width: 220px;
    background: #f0f0f0;
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease;
}
#sidebar h3 {
    margin-bottom: 10px;
    font-size: 1em;
}
#bookList,
#historyList,
#favoritesList {
    list-style: none;
    padding-left: 0;
}
#bookList li,
#historyList li,
#favoritesList li {
    margin-bottom: 5px;
    cursor: pointer;
    color: #3e3e3e;
}
#bookList li:hover,
#historyList li:hover,
#favoritesList li:hover {
    text-decoration: underline;
}
#chapterList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
    margin-top: 10px;
}
#chapterList button {
    padding: 6px 0;
    border: 1px solid #848484;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: 0.2s;
}
#chapterList button:hover,
#chapterList button:focus {
    background: #990000;
    color: white;
}
#chapterList button.active {
    background: #990000;
    color: white;
    font-weight: bold;
}
#bible-content {
    flex: 1;
    padding: 0px 20px 20px 20px;
}
#bible-content-title {
    word-spacing: -2px;
    margin-bottom: 20px;
}
.book-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #353535;
    letter-spacing: 0.5px;
}
.sub-title {
    padding-left: 10px;
    color: #5e5e5e;
    font-size: 1.2rem;
    font-weight: 500;
}
.version-label {
    margin-top: -20px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}
body.dark .book-title {
    color: #ffffff;
}
body.dark .version-label {
    color: #aaa;
}
#bible-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}
#bible-toolbar button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}
#bible-toolbar button:hover {
    background: #0056b3;
}
#versesContainer p {
    text-align: justify;
    line-height: 1.7em;
    font-size: var(--verse-font-size, 1.1rem);
    transition: font-size 0.2s ease;
}
#versesContainer p {
    text-align: left;
    margin: 6px;
    padding: 6px 10px 6px 42px;
    border-radius: 6px;
    position: relative;
}
#versionContainer {
    margin-bottom: 16px;
}
#versionContainer h3 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #333;
}
#versionSelect {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}
#versionSelect:hover {
    background-color: #fff;
}
#versionSelect:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 4px #25D36655;
}
#versesContainer p:nth-child(even) {
    background: #f7f7f7;
}
#versesContainer p:nth-child(odd) {
    background: #ffffff;
}
#versesContainer p .number {
    position: absolute;
    left: 10px;
    top: 6px;
    font-weight: bold;
    color: #980000;
}
body.dark #versesContainer p:nth-child(even) {
    background: #2b2b2b;
}
body.dark #versesContainer p:nth-child(odd) {
    background: #1f1f1f;
}
body.dark #versesContainer p .number {
    color: #848484;
}
.verse-actions {
    margin-left: 10px;
    font-size: 0.8em;
}
.verse-actions button {
    border: none;
    background: none;
    cursor: pointer;
    margin-left: 5px;
    color: #990000;
}
#searchResults p {
    margin: 5px 0;
}
#bookSelect {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #848484;
    font-size: 1em;
    margin-bottom: 10px;
    cursor: pointer;
}
#historyContainer {
    margin-top: 20px;
}
#toggleSidebar {
    position: absolute;
    top: -50px;
}
#bible-search {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 10px auto 20px auto;
    z-index: 100;
}
#bible-search input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #9c9c9c;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
#bible-search input:focus {
    border-color: #9c9c9c;
    box-shadow: 0 0 6px rgba(130, 130, 130, 0.3);
}
#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #9c9c9c;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}
#searchResults.active {
    display: block;
}
#searchResults p {
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 0.95rem;
}
#searchResults p:hover {
    background: #f8f9fa;
}
#searchResults a {
    color: #686868;
    text-decoration: none;
    font-weight: normal;
}
#searchResults a:hover {
    text-decoration: underline;
}
body.dark #searchResults {
    background: #2b2b2b;
    color: #eee;
    border-color: #9c9c9c;
}
body.dark #searchResults a {
    color: #66b3ff;
}
.result-tabs {
    display: flex;
    justify-content: center;
    background: #f7f7f7;
    border-bottom: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.result-tabs .tab {
    flex: 1;
    padding: 10px;
    background: #eaeaea;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #444;
    transition: background 0.3s;
}
.result-tabs .tab:hover {
    background: #ddd;
}
.result-tabs .tab.active {
    background: #990000;
    color: #fff;
}
.result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
.result-item .ref {
    color: #444;
    font-weight: bold;
    margin-bottom: 4px;
}
.result-item .verse a {
    text-decoration: none;
    color: #333;
}
.result-item .verse a:hover {
    text-decoration: underline;
}
.search-summary {
    background: #fafafa;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
    color: #555;
}
body.dark .result-tabs {
    background: #333;
    border-color: #444;
}
body.dark .result-tabs .tab {
    background: #444;
    color: #ddd;
}
body.dark .result-tabs .tab.active {
    background: #3399ff;
    color: #fff;
}
body.dark .result-item {
    border-color: #444;
}
body.dark .result-item .verse a {
    color: #ddd;
}
@media (max-width: 768px) {
    #bible-wrapper {
        flex-direction: column;
    }
    #sidebar {
        position: fixed;
        top: 72px;
        left: 0;
        width: 220px;
        height: calc(100% - 50px);
        background: #f0f0f0;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-250px);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    #sidebar.show {
        transform: translateX(0);
    }
    #bible-content {
        padding: 20px 10px 20px 10px;
        margin-left: 0;
    }
    #toggleSidebar {
        position: fixed;
        top: 80px;
        left: 10px;
        z-index: 1100;
        background: #990000;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        cursor: pointer;
    }
    #toggleSidebar.move {
        position: fixed;
        transform: translateX(155px);
        transition: transform 0.3s ease;
    }
    #versesContainer {
        transition: opacity 0.4s ease;
    }
}
.chapter-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.chapter-navigation button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.chapter-navigation button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.chapter-navigation button:active {
    transform: translateY(0);
    background-color: #004080;
}
@media (max-width: 768px) {
    .chapter-navigation {
        flex-direction: column;
        gap: 10px;
    }
    .chapter-navigation button {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
    }
}
#sharePanel {
    position: fixed;
    top: 300px;
    right: 20px;
    z-index: 999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    display: none;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#shareWhatsapp {
    width: 100%;
    margin-bottom: 4px;
    background: #25D366;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}
#shareFacebook {
    width: 100%;
    margin-bottom: 4px;
    background: #3b5998;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}
#shareTwitter {
    width: 100%;
    margin-bottom: 4px;
    background: #1da1f2;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}
#copyText {
    width: 100%;
    background: #777;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}
.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px;
    font-size: 14px;
}
.pagination-controls button {
    background: #25D366;
    color: white;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}
.pagination-controls button:hover:not(:disabled) {
    background: #128C7E;
    transform: translateY(-1px);
}
.pagination-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.pagination-controls button.active {
    background: white;
    color: #25D366;
    border: 2px solid #25D366;
    font-weight: bold;
}
.pagination-controls span {
    color: #444;
    font-size: 14px;
}
.custom-select-box {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding: 5px 10px;
    max-width: 100%;
}
.selected-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.options-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.options-container.show {
    display: block;
}
.options-container label:hover {
    background-color: #f0f0f0;
}
.options-container input[type="checkbox"] {
    margin-right: 8px;
}