@charset "utf-8";

.main-content-wrapper {
    position: relative;
    width: 100%;
}

#sidebar {
    display: none;
    position: absolute;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
    direction: rtl;
}

#sidebar::before {
    content: none;
}

.page-wrapper {
    gap: 30px;
    align-items: flex-start;
}

.active-aya {
    color: #B90004;
    outline: 1px dashed #3498db;
    transition: all 0.3s ease;
}

#textr {
    position: relative;
    padding: 80px;
    background: #fff;
    min-height: 250px;
    font-family: 'R20';
    font-size: 30px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.boder_bf {
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow-x: hidden;
    background: url('bag.png');
}

.btn-sec, .btn-sec2 {
    background: #006094;
    border-radius: 5px;
    color: #FFFFFF;
}

.btn-sec { padding: 3px 20px 10px 20px; }
.btn-sec2 { padding: 5px 5px 10px 5px; }
.btn-sec:hover { background: #014062; }

#textr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: url("corner.png") no-repeat;
    background-size: contain;
    z-index: 2;
}

#textr::after {
    content: "";
    position: absolute;
    top: 80px;
    left: 0;
    width: 80px;
    height: calc(100% - 160px);
    background: url("left.png") repeat-y;
    background-size: contain;
}

.corner {
    position: absolute;
    width: 80px;
    height: 80px;
    background: url("corner.png") no-repeat;
    background-size: contain;
    z-index: 2;
}

.top-right { top: 0; right: 0; transform: rotate(90deg); }
.bottom-left { bottom: 0; left: 0; transform: rotate(270deg); }
.bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }

.edge { position: absolute; background-size: contain; }

.edge.top, .edge.bottom {
    left: 80px;
    right: 80px;
    height: 80px;
    background-repeat: repeat-x;
}

.edge.top { top: 0; background-image: url("top.png"); }
.edge.bottom { bottom: 0; background-image: url("bottom.png"); }

.edge.right {
    top: 80px;
    right: 0;
    width: 80px;
    height: calc(100% - 160px);
    background: url("right.png") repeat-y;
    background-size: contain;
}

.panso {
    background: url("mktot.png") repeat-x center/contain, linear-gradient(165deg, #072a3d 0%, #006da5 50%, #072a3d 100%);
    background-size: auto 100%, cover;
    animation: moveBg 120s linear infinite;
}

@keyframes moveBg {
    from { background-position: 0% center, center; }
    to { background-position: 100% center, center; }
}

.center-img_logo {
    display: flex;
    justify-content: right;
    align-items: center;
}

.quran-navbar {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 10px 0;
    animation: slideDown 0.7s ease;
}

@keyframes slideDown {
    from { transform: translateY(-25px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.quran-icon {
    font-family: 'R1';
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #0d3b66;
    font-weight: 600;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.quran-icon img { width: 32px; height: 32px; transition: all 0.35s ease; }
.quran-icon span { white-space: nowrap; transition: color 0.35s ease; }

.quran-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.quran-icon:hover::before, .quran-icon.active::before { opacity: 1; }
.quran-icon img, .quran-icon span { position: relative; z-index: 1; }
.quran-icon:hover img, .quran-icon.active img { transform: scale(1.1); filter: brightness(0) invert(1); }
.quran-icon:hover span, .quran-icon.active span { color: #fff; }

.ayah-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 2px solid #0a4f6e;
    border-radius: 12px;
    box-sizing: border-box;
    
}

 
.ayah-text { font-size: 18px; color: #000; }
.ayah-number {
    width: 42px; height: 42px;
    background: #c9a23a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.settings-card {
    font-family: 'R1';
    background: #fff;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    animation: fadeUp .8s ease;
    border-radius: 12px;
    border: 1px solid #ddd;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-header { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #0d3b66; margin-bottom: 20px; }
.setting-group { margin-bottom: 22px; }
.setting-title { font-size: 14px; font-weight: 600; color: #555; margin-bottom: 10px; }
.form-select { border-radius: 12px; padding: 10px; font-weight: 600; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-box { width: 40px; height: 40px; border-radius: 10px; cursor: pointer; transition: all .3s ease; }
.color-box:hover { transform: scale(1.1); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.preview-box { width: 120px; height: 28px; border-radius: 8px; background: #0d3b66; }

.scrollable-select {
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0d3b66 #ddd;
}

.scrollable-select::-webkit-scrollbar { width: 8px; }
.scrollable-select::-webkit-scrollbar-track { background: #ddd; border-radius: 6px; }
.scrollable-select::-webkit-scrollbar-thumb { background-color: #0d3b66; border-radius: 6px; border: 2px solid #ddd; }

.headeroud { display: flex; font-family: 'R2'; align-items: center; font-size: 18px; color: #023b59; }
.headeroud .icon { margin: -10px 0 0 8px; }
.reader label { font-size: 12px; color: #777; }
.reader select { width: 100%; margin-top: 5px; padding: 8px; border-radius: 6px; border: 1px solid #ccc; }
.tracks { margin-top: 20px; }
.track { display: flex; align-items: center; margin-bottom: 15px; }
.track .play { background: none; border: none; font-size: 18px; cursor: pointer; color: #006094; width: 30px; }
.track .info { flex: 1; }
.track span { font-size: 13px; color: #333; }
.progress { background: #e0e5ea; height: 6px; border-radius: 10px; margin-top: 6px; overflow: hidden; }
.progress .bar { width: 45%; height: 100%; background: #003f63; }

.box {
    width: 220px; height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('Asset 84.png') no-repeat center/cover;
    opacity: 0.1;
    z-index: 1;
}

.content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.icon img { width: 100px; }
.number { color: #013857; font-size: 60px; line-height: 30px; font-weight: bold; font-family: 'R13'; z-index: 50; }

.verse { display: inline; position: relative; margin: 0 5px; }
.verse-number {
    font-family: 'R10';
    display: inline-block;
    line-height: 25px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    direction: rtl;
    unicode-bidi: plaintext;
    font-variant-numeric: lining-nums;
    font-feature-settings: "arab";
}

.basmala-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: -40px auto 30px auto;
}

.basmala-side { height: 120px; width: 200px; background-repeat: no-repeat; background-size: contain; background-position: center; }
.basmala-side.right { background-image: url("leftl.png"); }
.basmala-side.left { background-image: url("rightr.png"); }
.basmala-text { flex: 1; height: 100px; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }

.aya {
    transition: all 0.6s ease;
    border-radius: 10px;
    padding: 0 5px;
    cursor: pointer;
    display: inline;
}

.aya:hover {
    transform: scale(1.3);
    color: #B90004;
    background: #FFFFFF;
}

.aa { color:#006094; font-family: 'R1'; font-weight: bolder; text-decoration: none; }
.aa:hover { color:#C50000; }

@media (max-width: 768px) {
    #textr::before, #textr::after,
    #textr .corner, #textr .edge,
    #textr span[class^="corner"], #textr span[class^="edge"],
    .panso {
        display: none !important;
    }

    #textr {
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
        max-width: 100% !important;
    }

    .row { margin: 0 !important; }

    #textr > div[style*="padding: 10px"] {
        padding: 10px 5px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .aya {
        font-size: 1.4rem !important;
        line-height: 2.2 !important;
    }

    body.boder_bf { background-image: none !important; }

    .quran-icon { flex-direction: column; gap: 4px; padding: 8px; }
    .quran-icon span { font-size: 12px; }
}