@font-face { font-family: 'Aref Ruqaa'; font-style: normal; font-weight: 400;
  src: url(https://fonts.gstatic.com/s/arefruqaa/v26/WwkbxPW1E165rajQKDulIIIoVeo5.woff2) format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Sultan Script */
@font-face {
  font-family: 'sultan_script';
  src: url('https://www.sult4n.com/quran/fonts/sultan.woff2') format('woff2');
      font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Surah Name Ejazah */
@font-face {
  font-family: 'Surah Name - Ejazah style';
  src: url('https://www.sult4n.com/quran/fonts/ayaat/SurahNameEjazahstyle-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
.sora {
  font-family: 'sultan_script';
  font-size: 30px;
  color: #005800;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: justify;
}
        /* Global & Reset Styles */
        :root {
            --primary: #047857;
            --primary-hover: #065f46;
            --primary-light: #ecfdf5;
            --primary-text: #064e3b;
            --bg-color: #f8fafc;
            --card-bg: #ffffff;
            --text-color: #1e293b;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            --radius-lg: 16px;
            --radius-md: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --transition: all 0.25s ease;
        }

        * {
            font-family: 'El Messiri';
            box-sizing: border-box;
            margin: 0;
        }

        body {
            font-family: 'El Messiri', system-ui, -apple-system, sans-serif;
            background-color: #b4c2cf;
            /*color: var(--text-color);*/
            padding-bottom: 3rem;
            direction: rtl;
        }
        
        .main h1 {font-size: 14px;}
        

/* تعريف ألوان الوضع الليلي */
        body.dark-mode {
            --bg-color: #0f172a;
            --card-bg: #1e293b;
            --text-color: #f1f5f9;
            --text-muted: #94a3b8;
            --border-color: #334155;
            --primary-light: #064e3b;
            --primary-text: #FFFFFF;
        }
        body.dark-mode p.sora, body.dark-mode .theme-toggle-btn, body.dark-mode .dc-btn {
            color: #ffffff !important;
        }
        body.dark-mode .tab-btn { color: #f1f5f9;}
        body.dark-mode .tab-btn.active { color: #5ee1bc;}
        body.dark-mode .ayah-number {
            color: #44f0c2 !important;
        }
        body.dark-mode .content2 h3, .content2 .content-grid {
            color: #000;
        }
        
        .theme1 {display: flex; gap: 8rem; align-items: center;}

        /* تنسيق زر تبديل الوضع الليلي */
        .theme-toggle-btn {
            white-space: nowrap;
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 0.4rem 0.9rem;
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .theme-toggle-btn:hover {
            background-color: #8f8282;
            color: var(--text-color);
        }
        
        
        /* Header */
        .app-header {
            background-color: var(--primary);
            color: #ffffff;
            text-align: center;
            padding: 2.5rem 1rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .app-header h1 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .app-header p {
            font-size: 0.95rem;
            color: var(--primary-light);
            opacity: 0.9;
        }

        /* Main Container */
        .container {
            max-width: 100%;
            margin: 1.5rem auto 0;
            padding: 0 1rem;
        }

        /* Controls Bar (Tabs + Reset) */
        .controls-bar {
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 0.75rem 1.25rem;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .tabs {
            display: flex;
            gap: 1rem;
            margin: 0 auto;
        }

        .tab-btn {
            background: none;
            border: none;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-muted);
            padding: 0.5rem 1rem;
            cursor: pointer;
            position: relative;
            transition: var(--transition);
        }

        .tab-btn.active {
            color: var(--primary);
            font-weight: 700;
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -0.75rem;
            right: 0;
            width: 100%;
            height: 3px;
            background-color: var(--text-color);
            border-radius: 3px 3px 0 0;
        }
        
        .badge-top {
            display: inline-block;
            padding: 6px 16px;
            /*margin-bottom: 40px;*/
            font-size: 12px;
            font-weight: 600;
            color: #ffffff;
            background-color: var(--primary);
            border-radius: 15px;
        }

        .reset-btn {
            background-color: #ff0000;
            color: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 0.4rem 0.9rem;
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }

        /*.reset-btn:hover {*/
        /*    background-color: #e2e8f0;*/
        /*    color: var(--text-color);*/
        /*}*/

        /* Azkar List & Cards */
        .azkar-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .zekr-card {
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            padding: 1.25rem 1.5rem;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            gap: 1.5rem;
            transition: var(--transition);
            box-shadow: 0 10px 15px rgba(0, 0, 0, .5);
        }

        .zekr-card.completed {
            opacity: 0.55;
            background-color: #000;
        }

        .zekr-content {
            flex: 1;
        }

        .zekr-text {
            font-size: 1.4rem;
            line-height: 1.8;
            color: var(--text-color);
            margin-bottom: 1rem;
        }

        .zekr-proof, .zekr-proof a {
            display: inline-block;
            background-color: var(--primary-light);
            color: var(--primary-text);
            font-size: 0.85rem;
            font-weight: 500;
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
            text-decoration: none;
        }

        /* Action Side (Counter Button) */
        .zekr-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 130px;
            border-right: 1px solid var(--border-color);
            padding-right: 1.25rem;
        }

        .count-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .count-btn {
            width: 100%;
            padding: 0.65rem 1rem;
            background-color: var(--primary);
            color: #ffffff;
            border: none;
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .count-btn:hover:not(:disabled) {
            background-color: var(--primary-hover);
        }

        .count-btn:active:not(:disabled) {
            transform: scale(0.96);
        }

        .count-btn:disabled {
            background-color: #cbd5e1;
            color: #ff0000;
            cursor: not-allowed;
            font-size: 0.95rem;
        }

        /* Responsive */
        @media (max-width: 640px) {
            .zekr-card {
                flex-direction: column;
                gap: 1rem;
            }

            .zekr-action {
                border-right: none;
                border-top: 1px solid var(--border-color);
                padding-right: 0;
                padding-top: 1rem;
                width: 100%;
            }

            .controls-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .tabs {
                justify-content: center;
            }
            
            .theme1 {display: flex; gap: 1rem; align-items: center; align-self: center;}

            /*.reset-btn {*/
            /*    width: 100%;*/
            /*}*/
        }
        
        /* ---------- Ayah Styles ---------- */
.ayah {
  display: inline;
  font-family: 'sultan_script';
  color: #005800;
}

.ayah:hover {
    background-color: rgb(0 0 0 / 40%);
    color: #fff;
}

.ayah:hover .ayah-number {
    color: #FFF !important;
}

.ayah-number {
  color: #ff0000;
  font-family: 'sultan_script';
}

.ayah-count,
.ayah-word,
.ayah-word2 {
  font-family: 'Aref Ruqaa';
  font-size: 1rem;
  text-align: center;
}
.ayah-count {
    color: #ff0000;
}
.ayah-word {
    color: #4d4d4d !important;
}

    .page-wrapper {
    width: 100%;
    margin: 30px auto;
    padding: 0;
        }
    .content2 img {
    margin: 0 auto;
    display: block;
    border-radius: 50%;
    border: 2px solid #FF9800;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* width: 250px; */
    /* height: 250px; */
    object-fit: cover;
    max-width: 140px;
    height: 140px;
}
/* شريط التحكم العائم أسفل الشاشة */
.floating-controls {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    /*background-color: rgba(255, 255, 255, 0.9);*/
    /*backdrop-filter: blur(8px);*/
    padding: 10px 16px;
    border-radius: 30px;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);*/
    z-index: 1000;
}

/* تنسيق الأزرار العائمة */
.floating-controls .theme-toggle-btn,
.floating-controls .reset-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.theme-toggle-btn {
    background-color: #8f8282;
    color: #fff;
}

.reset-btn {
    background-color: #e74c3c;
    color: #fff;
}

.floating-controls button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* التوافق مع الوضع الليلي للمكان العائم */
/*body.dark-mode .floating-controls {*/
/*    background-color: rgba(30, 30, 30, 0.9);*/
/*}*/