/* public/css/apps/quran.css - Quran Explorer App */

.quran-app-content-siteos {
    display: flex; flex-direction: column;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
    overflow: visible; /* Allow dropdown to spill out if needed */
}

.quran-controls-siteos {
    padding-bottom: 5px; margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: visible; /* Critical for dropdown */
    z-index: 10; /* Ensure header is above panels */
}

.quran-controls-surah-selector {
    flex: 1;
    min-width: 200px;
    position: relative; /* For dropdown positioning context */
    z-index: 20; /* Dropdown container higher than audio player */
}

/* Custom Select Styling */
.siteos-custom-select-container {
    width: 100%;
    position: relative;
}
.siteos-custom-select-trigger {
    border: 1px solid #7F9DB9;
    background: #FFF;
    padding: 4px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.siteos-custom-select-options {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #FFF;
    border: 1px solid #7F9DB9;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000; /* Must be very high */
    display: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
}
.siteos-custom-select-options.open { display: block; }
.siteos-custom-select-options li { padding: 4px; cursor: pointer; }
.siteos-custom-select-options li:hover { background: #316AC5; color: white; }


.quran-controls-audio-player {
    flex: 1;
    display: flex;
    align-items: center;
    background: #F0F0F0;
    border: 1px solid #999;
    padding: 3px 8px;
    border-radius: 3px;
    gap: 8px;
}

.siteos-audio-btn {
    background: none; border: none;
    cursor: pointer; font-size: 16px;
    color: #316AC5;
    padding: 0;
}
.siteos-audio-btn:hover { color: #000; }

#quran-audio-scrubber {
    flex-grow: 1;
    cursor: pointer;
}

.siteos-audio-time {
    font-size: 10px;
    font-family: monospace;
    min-width: 30px;
    text-align: right;
}

/* 2-Column Layout: Verses Left, Tafsir Right */
.quran-display-layout-siteos {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    gap: 5px;
    min-height: 0; /* Important for nested scrolling */
}

.quran-panel-siteos {
    flex: 1;
    border: 1px solid #999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FFF;
}

.quran-panel-title-siteos {
    background: #E0E0E0;
    padding: 4px;
    font-weight: bold;
    border-bottom: 1px solid #999;
    font-size: 11px;
}

.quran-panel-content-siteos {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* Highlights */
.quran-verse-card-siteos {
    padding: 5px; margin-bottom: 2px;
    border-bottom: 1px solid #eee;
    position: relative; /* Context for share icon */
}
.quran-verse-card-siteos.active-verse {
    background-color: #316AC5 !important;
    color: white !important;
}
.quran-verse-card-siteos.active-verse .qvc-ref-siteos { color: #EEE !important; }
.quran-verse-card-siteos:hover { background-color: #F0F0F0; }

.qvc-share-icon-siteos {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.quran-verse-card-siteos:hover .qvc-share-icon-siteos {
    opacity: 1;
}
.quran-verse-card-siteos.active-verse .qvc-share-icon-siteos {
    opacity: 1;
}

