@import url('https://fonts.googleapis.com/earlyaccess/amiri.css');
@import url('https://fonts.googleapis.com/earlyaccess/droidarabickufi.css');
@import url('https://fonts.googleapis.com/earlyaccess/droidarabicnaskh.css');
@import url('https://fonts.googleapis.com/earlyaccess/thabit.css');

@font-face {
    font-family: 'noorehude font';
    src: url('../fonts/noorehuda-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JameelNastaleeq';
    src: url('../fonts/Jameel Noori Nastaleeq Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NotoNastaliqUrdu';
    src: url('../fonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'MeQuran';
    src: url('https://cdn.alquran.cloud/public/fonts/me_quran-webfont.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MeQuran2';
    src: url('https://cdn.alquran.cloud/public/fonts/me_quran_2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NooreHidayah';
    src: url('https://cdn.alquran.cloud/public/fonts/noorehidayat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Othmani';
    src: url('https://cdn.alquran.cloud/public/fonts/ar-Othmani.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quran';
    src: url('https://cdn.alquran.cloud/public/fonts/QUR_STD.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Uthmani';
    src: url('https://cdn.alquran.cloud/public/fonts/uthman_tn09.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Scheherazade';
    src: url('https://cdn.alquran.cloud/public/fonts/Scheherazade-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Naskh';
    src: url('https://cdn.alquran.cloud/public/fonts/kfc_naskh-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kitab';
    src: url('https://cdn.alquran.cloud/public/fonts/Kitab-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kitab Bold';
    src: url('https://cdn.alquran.cloud/public/fonts/Kitab-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.qtp-tabs {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
}

.quran-types button {
    background-color: var(--n-tabs-title-background-color) !important;
    color: var(--n-tabs-title-color) !important;
    border: none;
}

.quran-types button.active {
    background-color: var(--e-global-color-accent) !important;
    color: #ffffff !important;
    border: none;
}

.qtp-tabs .tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
    padding-left: 0;
    list-style: none;
}

.qtp-tabs .tab-buttons li {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    margin-right: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    transition: background-color 0.3s;
}

.qtp-tabs .tab-buttons li.active {
    background-color: #ffffff;
    border-bottom: 2px solid #ffffff;
    font-weight: bold;
}

.qtp-tabs .tab-buttons li:hover {
    background-color: #e0e0e0;
}

.qtp-tabs .tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #ffffff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.qtp-tabs .tab-content.active {
    display: block;
}

.qd-surah-page {
	max-width: 900px;
    margin: 5px auto;
    padding: 30px 30px 0px 30px;
	text-align: justify;
    text-align-last: justify;
    word-spacing: 2px;
	border-bottom: 1px solid #00000036;
/*    display: block;
    width: 100%;
    background: #fdf9f2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
	text-justify: inter-word; */
}

.page-number {
	text-align: center;
    margin-top: 20px;
    font-size: 22px;
    text-align-last: auto;
	margin: 10px 0px;
	color: #000;
}

.quran-line {
    display: contents;
    width: 100%;
    text-align: justify;
    line-height: 2.2;
    min-height: 2.2em;
    word-spacing: 5px;
}

.quran-line:last-child {
    margin-bottom: 0;
}

.juz-container {
    width: 100%;
    height: auto;
    display: inline-block;
    column-count: 3;
    column-gap: 1em;
    flex-wrap: wrap;
    margin-top: 20px;
}

.juz-box {
    width: 100%;
    display: inline-block;
    margin-block-end: 13px;
    background-color: #f4f5f6;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0px 0px 8px rgb(0 0 0 / 13%);
}

.juz-body a:hover {
    border: 1px solid #4733aa !important;
}

.juz-header {
    text-align: left;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #000000;
}

.single-surah .cky-btn-revisit-wrapper {
    display: none !important;
}

.single-surah .e-contact-buttons__chat-button-container {
    display: none !important;
}

.single-surah .footer-sticky-contact {
    display: none !important;
}

.sura-box {
    height: auto;
    display: flex;
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 14px 13px 14px 13px;
    border-radius: 5px;
    border: 1px solid #f4f4f4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease-in-out;
}

.sura-box:hover {
    height: auto;
    border: 1px solid #4733aa;
    background-color: #fcfcfc;
}

.sura-number {
    width: 15%;
    font-size: 17px;
    font-weight: 500;
    color: #000000;
    align-content: space-around;
    background-color: #f4f5f6;
    border-radius: 5px;
    text-align: center;
    margin-right: 10px;
}

.sura-name {
    font-size: 15px;
    font-weight: 500;
    width: 50%;
    padding: 0;
    margin: 0;
    color: #3a3a3a;
}

.sura-name span {
    font-size: 0.75rem;
    padding: 0;
    margin: 0;
}

.space {
    width: 13%;
}

.sura-ayat {
    font-size: 14px;
    font-weight: 1500;
    color: #000000;
    align-self: center;
    width: 22%;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.surah-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #f4f4f4;
    border-radius: 6px;
    padding: 15px;
    margin: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease-in-out;
}

.surah-box:hover {
    border: 1px solid #4733aa;
    background-color: #fcfcfc;
}

.surah-number {
    background: #f4f5f6;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    width: 45px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
    color: #000000;
}

.surah-name {
    font-weight: 500;
    font-size: 15px;
    flex-grow: 1;
    color: #3a3a3a;
}

.surah-name span {
    font-size: 0.75rem;
    font-weight: 500;
}

.surah-ayat {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-left: 10px;
    white-space: nowrap;
}

.surah-nav-btn {
    display: inline-block;
    margin: 10px 5px;
    color: #3f3f3f !important;
    border: 1px solid #3f3f3f;
    cursor: pointer;
    padding: 8px 12px !important;
    font-family: Poppins, sans-serif;
    transition: background-color 0.3s ease;
    text-decoration: none;
    background: none !important;
}

.surah-nav-btn-a {
    display: inline-block;
    color: #3f3f3f !important;
    border: 1px solid #3f3f3f;
    border-radius: 5px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
    background: none !important;
    padding: 8px 12px !important;
}

.surah-nav-btn:hover {
    background: none !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.surah-nav-btn-a:hover {
    background: none !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.qd-dark-mode .surah-nav-btn {
    color: #6c7777 !important;
}

.qd-dark-mode .surah-nav-btn-a {
    color: #6c7777 !important;
}

.qd-dark-mode .surah-nav-btn:hover {
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.qd-dark-mode .surah-nav-btn-a:hover {
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

h1.entry-title {
    display: none !important;
}

.surah-header {
    margin-bottom: 30px;
    background: #4733ac;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    text-align: center;
    margin-top: -63px;
    color: #ffffff;
    padding: 165px 0 50px;
}

.surah-header h2 {
    font-family: 'noorehude font', serif;
    font-size: 50px;
}

.surah-header p {
    font-size: 17px;
    margin: 8px 0px;
}

.ayah {
    border-bottom: 1px solid #00000036;
    padding: 20px 0px;
    text-align: right;
}

.arabic {
    text-align: right;
    color: #111;
    direction: rtl;
    font-size: 38px;
    display: block;
    font-family: var(--qd-arabic-font, 'Kitab'), serif;
    line-height: 1.6;
	margin: 0px;
}

.ayah-line {
    display: block;
    margin-left: auto;
    white-space: nowrap;
}

.ayah-line-text {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
	padding: 0px 3px;
}

.translation {
    direction: ltr;
    text-align: left;
    font-size: 19px !important;
    font-family: 'Poppins' !important;
    color: #000000;
    margin-bottom: 0px;
    line-height: 1.6;
}

.urdu {
    direction: rtl;
    text-align: left;
    font-size: 22px !important;
    color: #000000;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 0px;
}

.translation-select-wrapper {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
	
}

.translation-select-wrapper label {
    font-size: 17px !important;
    font-weight: 600 !important;
}

#translation-select {
    padding: 5px 10px;
    width: 100px;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
}

.arabic-edition-select {
    padding: 5px 10px;
    width: 200px;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
}

.arabic-font-select {
    padding: 5px 10px;
    width: 140px;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
}

.surah-video {
    text-align: center;
    margin: 40px auto;
}

.surah-video iframe {
    width: 560px;
    height: 315px;
}

.surah-navigation-buttons {
    text-align: center;
    margin-top: 40px;
}

.urdu-toggle-btn-wrapper {
    text-align: start;
    margin-bottom: 20px;
}

.urdu-toggle-btn {
    background: #424242 !important;
    padding: 6px 10px !important;
    border: none;
    color: #ffffff !important;
}

.urdu-toggle-btn:hover {
    background: #4a4a4a !important;
}

.qd-dark-toggle {
    background: #ffffff;
    border-radius: 5px;
    padding: 4px;
    text-align: center;
    ;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

body {
    overflow-x: hidden !important;
}

body.qd-dark-mode {
    background-color: #1f2125 !important;
    color: #ffffff !important;
}

body.qd-dark-mode .ayah {
    border-color: #ffffff;
}

body.qd-dark-mode .translation,
body.qd-dark-mode .urdu,
body.qd-dark-mode .arabic {
    color: #ffffff !important;
}

body.qd-dark-mode .qd-dark-toggle {
    background: #333;
    color: #fff;
}

body.qd-dark-mode .translation-select-wrapper-sticky {
    background-color: #111111 !important;
}

#audio-controls-icons,
#volume-slider {
    transition: all 0.3s ease-in-out;
}

.audio-controls {
    position: relative;
}

.volume-wrapper {
    position: relative;
    display: inline-block;
}

.volume-popup {
    display: none;
    position: absolute;
    bottom: 55px;
    left: -50px;
    background-color: #111111;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    z-index: 999;
    width: 350%;
    height: 85%;
}

#volume-slider {
    width: 135px;
    accent-color: #ffffff;
    background: transparent;
}

#volume-slider::-webkit-slider-thumb {
    background-color: #0073aa;
}

#volume-slider::-moz-range-thumb {
    background-color: #0073aa;
}

.audio-player-body-inner-container {
    width: 100%;
}

.audio-player-slider {
    justify-content: space-between;
    display: flex;
    top: 40px;
    height: 10px;
}

.audio-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.audio-controls-icons {
    padding: 5px 10px !important;
    background: none !important;
    color: white !important;
}

.audio-controls-icons:hover {
    background-color: #383838 !important;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.audio-icon {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

.audio-icon:hover {
    color: #ccc;
}

.reciter-dropdown {
    padding: 4px 8px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
}

.ayah-dropdown {
    padding: 4px 8px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
}

.progress-container {
    flex-grow: 1;
    width: 100%;
}

#audio-progress {
    width: 100%;
    height: 4px;
    background: #555;
    appearance: none;
}

#audio-progress::-webkit-slider-thumb {
    appearance: none;
    height: 14px;
    width: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
}

#toggle-audio-bar {
    padding: 8px 19px 8px 19px;
    border: none;
    background-color: #ff7100;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 500;
}

.custom-audio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #111;
    color: white;
    padding: 0px 5px 5px 5px;
    z-index: 9999;
    font-family: sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.translation-select-wrapper-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
	justify-content: space-evenly;
}

#settings-toggle {
	border-radius: 5px 5px 5px 5px;
    padding: 8px 10px 8px 10px;
    background-color: #dfdfdf;
	transition: 0.3s;
}
#settings-toggle:hover {
    background-color: #f56e02;
	transition: 0.3s;
}

img.emoji {
    filter: brightness(0);
}

#settings-toggle:hover img.emoji {
    filter: brightness(3);
}

@media (max-width: 320px) {
    .juz-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .surah-video iframe {
        width: 100%;
        height: 170px;
    }
}

@media (max-width: 600px) {
    .qtp-tabs .tab-buttons {
        flex-direction: column;
    }

    .qtp-tabs .tab-buttons li {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }

    .qtp-tabs .tab-buttons li.active {
        border-bottom: 2px solid #ffffff;
    }

    .surah-video iframe {
        width: 97%;
    }
}

@media (max-width: 768px) {
    .juz-container {
        column-count: 1;
    }

    .surah-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {
    .audio-player-slider {
        top: 18px;
        font-size: 12px;
    }

    .single-surah .elementor-hidden-desktop {
        position: absolute !important;
    }

    .translation-select-wrapper {
        justify-content: space-between;
    }

    .arabic {
        font-size: 35px;
    }
}

/* ----------------------------------------------------------- */


.surah-mode-switch a {
    padding: 8px 19px 8px 19px;
    background-color: #dfdfdf;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none !important;
	margin: 5px;
}

.surah-mode-switch a.active {
    padding: 8px 19px 8px 19px;
    border: none;
    background-color: #ff7100;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.reading-mode-text {
    font-size: 37px;
    line-height: 2.3;
    font-family: var(--qd-arabic-font, 'Kitab'), serif;
    direction: rtl;
/*     text-align: justify;
    text-align-last: justify;
    text-justify: inter-word;
    max-height: calc(13 * 2.3em);
    overflow: hidden; */
}



@media (max-width: 1200px) {
    .qd-surah-page {
        max-width: 820px;
        padding: 24px 30px;

    }
    .qd-surah-page {
        max-width: 1100px;
        max-height: calc(13 * 2.5em)
    }
}

@media (max-width: 992px) {
    .qd-surah-page {
        max-width: 720px;
        padding: 22px 26px;
    }

    .reading-mode-text {
        font-size: 32px;
        line-height: 2.1;
        max-height: calc(13 * 3em);
    }
}

@media (max-width: 820px) {
    .qd-surah-page {
        max-width: 100%;
        padding: 20px 18px;
        border-radius: 4px;
    }

    .reading-mode-text {
        font-size: 28px;
        line-height: 2;
        max-height: calc(13 * 3.8em);
    }
}


@media (max-width: 768px) {
    .qd-surah-page {
        max-width: 100%;
        padding: 20px 18px;
        border-radius: 4px;
    }

    .reading-mode-text {
        font-size: 28px;
        line-height: 2;
        max-height: calc(13 * 4em);
    }
}

@media (max-width: 480px) {
    .qd-surah-page {
        padding: 16px 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .reading-mode-text {
        font-size: 24px;
        line-height: 1.9;
        max-height: calc(13 * 4.5em);
        word-spacing: 4px;
    }
}


.reading-mode-text .quran-line ayahNum,.ayah-num {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    height: 1.6em;
    border: 2px solid #000000;
    border-radius: 20px;
    color: #000000;
    font-size: 0.7em;
    line-height: 0;
    vertical-align: middle;
}

.reading-ayah-text {
/*     display: inline-block; */
    width: fit-content;
    max-width: 100%;
	padding: 0px 3px;
}

.reading-ayah.is-playing .reading-ayah-text {
    border-radius: 10px;
    padding: 0px 3px;
    background-color: #0071ba0f;
    background-image: linear-gradient(to left, rgb(0 113 186 / 12%), rgb(0 113 186 / 12%));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: var(--qd-ayah-progress, 0%) 100%;
    transition: background-size 0.12s linear;
}

.ayah.is-playing .arabic {
    background: none;
    box-shadow: none;
    padding: 0;
}

.ayah.is-playing .ayah-line-text {
    background-color: #0071ba36;
    background-image: linear-gradient(to left, rgb(0 113 186 / 42%), rgb(0 113 186 / 42%));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: var(--qd-ayah-line-progress, 0%) 100%;
    border-radius: 10px;
    padding: 0px 3px;
    transition: background-size 0.12s ease-out;
}

/* Settings Sidebar Styles */
.settings-icon-btn {
    padding: 6px 10px;
    border: none;
    background-color: #4733aa;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

.settings-icon-btn:hover {
    background-color: #3a2a88;
}

.settings-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.settings-sidebar.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.settings-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.settings-close {
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
	background-color: var(--e-global-color-accent);
    font-family: "Poppins", Poopins;
    font-weight: 400;
    text-transform: capitalize;
    color: #FFFFFF;
    border-radius: 5px;
    padding: 13px;
}

.settings-close:hover {
    background-color: #fd7000;
}

.settings-content {
    padding: 20px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.setting-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: #4733aa;
    box-shadow: 0 0 0 2px rgba(71, 51, 170, 0.1);
}

.theme-toggle {
    display: flex;
    gap: 10px;
}

.theme-toggle button span {
	line-height: 0px;
}

.theme-btn {
    flex: 1;
    padding: 10px 15px;
    background: #0071BA;
    color: #333;
	border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.theme-btn:hover {
    background: #f16b00;
    color: #fff;
}

.theme-btn.active {
    background: #dfdfdf;
    color: #000;
	border: none;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Dark mode styles for settings sidebar */
body.qd-dark-mode .settings-sidebar {
    background: #2a2a2a;
    color: #fff;
}

body.qd-dark-mode .settings-header {
    background: #333;
    border-bottom-color: #444;
}

body.qd-dark-mode .settings-header h3 {
    color: #fff;
}

body.qd-dark-mode .settings-close {
    color: #ccc;
}

body.qd-dark-mode .settings-close:hover {
    background-color: #444;
}

body.qd-dark-mode .setting-group label {
    color: #fff;
}

body.qd-dark-mode .setting-select {
    background: #333;
    border-color: #555;
    color: #fff;
}

body.qd-dark-mode .setting-select:focus {
    border-color: #4733aa;
}

body.qd-dark-mode .theme-btn {
    background: #444;
    border-color: #555;
    color: #fff;
}

body.qd-dark-mode .theme-btn:hover {
    background: #ff7100;
    color: #fff;
    border-color: #ff7100;
}

body.qd-dark-mode .theme-btn.active {
    background: #ff7100;
    color: #fff;
    border-color: #ff7100;
}

body.qd-dark-mode span.ayah-num {
    color: #fff;
    border: 2px solid #fff;
}

body.qd-dark-mode .page-number {
   color: #fff;
}

body.qd-dark-mode .reading-mode-text.qd-surah-page {
    border-bottom: 1px solid #fff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .settings-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .translation-select-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .settings-icon-btn {
        order: 1;
    }
}