/* =====================================================================
   Sub-Header Bar — dipakai /sholat, /quran/surah, /quran/juz.

   Dipindahkan dari blok <style> inline di
   application/views/public/templates/sub_header.php agar tidak ada lagi
   CSS tertanam di view. Nilai dipertahankan sama persis.
   ===================================================================== */

.sub-header-bar {
	background: var(--text);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(229,231,235,0.6);
	position: sticky;
	top: 56px;
	z-index: 1035;
	padding: 8px 0;
}
.sub-header-bar .form-select {
	background-color: #f8fafc;
	border-color: #e2e8f0;
	font-size: 0.88rem;
	font-weight: 500;
	color: #1e293b;
	padding: 7px 36px 7px 14px;
	border-radius: 10px;
	transition: border-color 0.2s, box-shadow 0.2s;
	cursor: pointer;
}
.sub-header-bar .form-select:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
	background-color: #fff;
}
.sub-header-bar .sub-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.2s;
	white-space: nowrap;
}
.sub-header-bar .sub-nav-link:hover {
	background: #f1f5f9;
	color: #064e3b;
	border-color: #e2e8f0;
}
.sub-header-bar .sub-nav-link.active {
	background: rgba(16,185,129,0.1);
	color: #064e3b;
	border-color: rgba(16,185,129,0.3);
}
.btn-cog-settings {
	width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e5e7eb;
	background: #fff; display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: all 0.2s; font-size: 1rem; color: #6b7280;
}
.btn-cog-settings:hover { background: #f9fafb; border-color: #064e3b; color: #064e3b; }
.btn-cog-settings i { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-cog-settings:hover i { transform: rotate(90deg); }
@media (max-width: 575.98px) {
	.sub-header-bar { top: 0; padding: 6px 0; }
	.sub-header-bar .form-select { font-size: 0.95rem; padding: 10px 36px 10px 14px; }
}

/* Pembungkus dropdown tengah (menggantikan style="max-width: 320px" di markup) */
.sub-header-bar .sub-header-dropdown {
	flex: 1 1 auto;
	max-width: 320px;
}

/* ---------------------------------------------------------------
   Kotak pencarian ayat (mengarah ke /quran/search).
   Dipicu tombol ala .btn-cog-settings → muncul MODAL (Bootstrap),
   dipakai di /quran/surah, /quran/juz, /sholat, dan halaman hasil.
   --------------------------------------------------------------- */
.quran-search-modal .sub-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}
.quran-search-modal .sub-search-icon {
	position: absolute;
	left: 13px;
	color: #94a3b8;
	font-size: 0.9rem;
	pointer-events: none;
}
.quran-search-modal .sub-search-input {
	width: 100%;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	border-radius: 12px;
	padding: 12px 14px 12px 38px;
	font-size: 0.95rem;
	color: #1e293b;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.quran-search-modal .sub-search-input:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
	background: #fff;
}
.quran-search-modal .modal-content { border: 0; border-radius: 16px; }
.quran-search-modal .modal-title { font-weight: 700; }

@media (max-width: 767.98px) {
	/* Bar pembaca boleh membungkus bila sempit (dropdown + tombol). */
	.sub-header-bar .main-full-width { flex-wrap: wrap; }
}
