body {
    margin: 0;
    font-family: sans-serif;
    color: #fff;
    background: #0e0f12;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.header {
    text-align: center;
    margin-bottom: 1rem;
}

.title i {
    color: gold;
    margin-right: 0.5rem;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.select-input,
input {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    flex: 1;
}

.dual-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box button {
    position: absolute;
    right: 0.3rem;
    top: 0.3rem;
    background: gold;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
}

.verses-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    height: calc(100vh - 220px); /* Adjust for header + controls + nav + footer */
}

.panel {
    background: #14161a;
    border: 1px solid gold;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-title {
    text-align: center;
    background: gold;
    color: #0e0f12;
    padding: 0.5rem;
    font-weight: bold;
}

.verses-container {
    padding: 0.5rem;
    overflow-y: auto;
    flex: 1; /* Make container take all available vertical space */
}

.verse {
    border-bottom: 1px solid #333;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.verse-header {
    font-weight: bold;
    color: gold;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.verse-content mark {
    background: #ffd700;
    color: #000;
    font-weight: bold;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.navigation button {
    padding: 0.5rem 1rem;
    background: gold;
    color: #0e0f12;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-summary {
    position: fixed;
    top: 60px;
    right: 10px;
    background: #14161a;
    border: 1px solid gold;
    border-radius: 6px;
    padding: 0.5rem;
    max-height: 400px;
    overflow: auto;
    z-index: 100;
}

.search-summary .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: gold;
    margin-bottom: 0.5rem;
}

.search-summary.hidden {
    display: none;
}

footer.footer {
    text-align: center;
    margin-top: 1rem;
    color: #aaa;
}

@media (max-width: 1024px) {
    .verses-panels {
        grid-template-columns: 1fr;
        height: auto;
    }
    .dual-search {
        flex-direction: column;
    }
}