/*
.fixed-bottom-bar {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}
*/




/* تنسيقات المشغل */
    .audio-player {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        direction: rtl;
    }

    .player-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .player-controls button {
        background: #007bff;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.2rem;
        transition: background 0.3s;
    }

    .player-controls button:hover {
        background: #0056b3;
    }

    .now-playing {
        flex-grow: 1;
        text-align: center;
        font-weight: bold;
        color: #333;
    }

    /* شريط التقدم */
    .progress-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .time-display {
        font-size: 0.9rem;
        color: #666;
        min-width: 40px;
        text-align: center;
    }

    .progress-wrapper {
        flex-grow: 1;
        position: relative;
    }

    .progress-bar {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #ddd;
        outline: none;
        -webkit-appearance: none;
    }

    /* تنسيق شريط التقدم لمتصفحات Webkit (Chrome, Safari) */
    .progress-bar::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }

    /* تنسيق شريط التقدم لمتصفح Firefox */
    .progress-bar::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }

    /* تنسيق شريط التقدم لمتصفح IE */
    .progress-bar::-ms-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }

    /* تنسيق المسار (Track) */
    .progress-bar::-webkit-slider-runnable-track {
        background: linear-gradient(to right, #007bff var(--progress, 0%), #ddd var(--progress, 0%));
        height: 6px;
        border-radius: 3px;
    }

    .progress-bar::-moz-range-track {
        background: linear-gradient(to right, #007bff var(--progress, 0%), #ddd var(--progress, 0%));
        height: 6px;
        border-radius: 3px;
    }

    /* تأثير عند التحريك */
    .progress-bar:hover::-webkit-slider-thumb {
        transform: scale(1.2);
        transition: transform 0.2s;
    }

    .progress-bar:hover::-moz-range-thumb {
        transform: scale(1.2);
        transition: transform 0.2s;
    }



    /* تنسيقات Nav bar  */

/* header   #nav-id */
  /* كل التنسيقات هنا داخل #nav-id فقط */
 
#nav-id {
    width: 100%;
 
    /* الحاوية الأساسية */
    display: flex;
    justify-content: center;
    padding-bottom: 20px ;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#nav-id .navbar-minimal {
    width: 100%;
    background-color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    direction: rtl; /* لضمان الترتيب من اليمين لليسان */
}

#nav-id .navbar-minimal a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* تأثير عند تمرير الماوس */
#nav-id .navbar-minimal a:hover {
    /*
    color: #007bff;
    */
    color: #188302;
    background-color: rgba(0, 123, 255, 0.1);
}

/* تنسيق الرابط النشط */
#nav-id .navbar-minimal a.active {
    background-color: #04aa11;
    /*
    background-color: #007bff;
    */
    color: #ffffff;
}






/* alqaria */


/* --primary: #25f1f8; */
/* --primary-light: #10abd1; */

 :root {
            /* --primary: #2c5f2d; */
            --primary: #24b426;
            --primary-light: #3a7c3e;
            --secondary: #97bc62;
            --accent: #fccb06;
            --light: #f8f9fa;
            /* --dark: #1a472a; */
            --dark: #147c38;
            --text: #333;
            --gray: #6c757d;
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
            --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
            --transition: all 0.3s ease;
            --border-radius: 12px;
        }
        
        body {
            font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
            color: var(--text);
            min-height: 100vh;
            padding: 20px 0;
            padding-bottom: 114px; 
            direction: rtl;
        }
        
        .page-container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        .page-title {
            color: var(--dark);
            font-weight: 800;
            font-size: 2.5rem;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .page-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            right: 50%;
            transform: translateX(50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to left, var(--primary), var(--secondary));
            border-radius: 2px;
        }
        
        .page-subtitle {
            color: var(--gray);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        /* تصميم عناصر التحكم */
        .controls-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: var(--shadow-md);
            border: none;
        }
        
        .search-container {
            position: relative;
        }
        
        .search-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
            font-size: 1.2rem;
        }
        
        .search-input {
            width: 100%;
            padding: 14px 20px 14px 55px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .search-input:focus {
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(151, 188, 98, 0.2);
            outline: none;
        }
        
        .stats-badge {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 12px 25px;
            border-radius: 10px;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
        }
        
        .filter-btn {
            background: white;
            border: 2px solid #e9ecef;
            color: var(--dark);
            padding: 12px 25px;
            border-radius: 10px;
            font-weight: 600;
            transition: var(--transition);
        }
        
        .filter-btn:hover {
            border-color: var(--secondary);
            color: var(--primary);
        }
        
        /* تصميم بطاقات القراء */
        .alqaria {
            margin: 0 -10px;
        }
        
        .alqaria .col-md-3,
        .alqaria .col-sm-6,
        .alqaria .col-6 {
            padding: 10px;
        }
        
        .reader-card-link {
            text-decoration: none;
            display: block;
            height: 100%;
            transition: var(--transition);
        }
        
        .reader-card-link:hover {
            transform: translateY(-8px);
        }
        
        .reader-card {
            background: white;
            border: none;
            border-radius: var(--border-radius);
            overflow: hidden;
            height: 100%;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            position: relative;
        }
        
        .reader-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to left, var(--primary), var(--secondary));
            z-index: 2;
            transition: var(--transition);
        }
        
        .reader-card:hover::before {
            height: 8px;
            background: linear-gradient(to left, var(--secondary), var(--accent));
        }
        
        .card-gradient-overlay {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(44, 95, 45, 0.03) 0%, rgba(151, 188, 98, 0.03) 100%);
            opacity: 0;
            transition: var(--transition);
            z-index: 1;
        }
        
        .reader-card:hover .card-gradient-overlay {
            opacity: 1;
        }
        
        /* محتوى البطاقة */
        .card-content-wrapper {
            position: relative;
            z-index: 3;
            padding: 3px 2px;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        
        
        .reader-card:hover .reader-icon {
            transform: scale(1.1);
            background: linear-gradient(135deg, var(--secondary), var(--accent));
        }
        
        .reader-name {
            color: var(--dark);
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.4;
            transition: var(--transition);
        }
        
        .reader-card:hover .reader-name {
            color: var(--primary);
        }
        
        .reader-meta {
            color: var(--gray);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
        }
        
        .recitation-count {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        /* تأثيرات دخول البطاقات */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .reader-card {
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
        }
        
        .reader-card:nth-child(1) { animation-delay: 0.1s; }
        .reader-card:nth-child(2) { animation-delay: 0.2s; }
        .reader-card:nth-child(3) { animation-delay: 0.3s; }
        .reader-card:nth-child(4) { animation-delay: 0.4s; }
        .reader-card:nth-child(5) { animation-delay: 0.5s; }
        .reader-card:nth-child(6) { animation-delay: 0.6s; }
        .reader-card:nth-child(7) { animation-delay: 0.7s; }
        .reader-card:nth-child(8) { animation-delay: 0.8s; }
        
        /* تصميم متجاوب */
        @media (max-width: 768px) {
            .page-title {
                font-size: 2rem;
            }
            
            .reader-card-link:hover {
                transform: translateY(-5px);
            }
            
            .card-content-wrapper {
                padding: 2px 1px;
            }
            
            .reader-icon {
                width: 70px;
                height: 70px;
                font-size: 28px;
            }
            
            .reader-name {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 576px) {
            .page-title {
                font-size: 1.8rem;
            }
            
            .controls-card {
                padding: 2px;
            }
            
            .card-content-wrapper {
                padding: 2px 1px;
            }
            
           
            
            .reader-name {
                font-size: 1rem;
            }
            
            .reader-meta {
                font-size: 0.85rem;
                flex-direction: column;
                gap: 8px;
            }
        }
        
        /* حالة عدم وجود قراء */
        .no-readers-container {
            background: white;
            border-radius: var(--border-radius);
            padding: 60px 30px;
            text-align: center;
            box-shadow: var(--shadow-md);
            margin-top: 20px;
        }
        
        .no-readers-icon {
            font-size: 70px;
            color: #e9ecef;
            margin-bottom: 20px;
        }
        
        .no-readers-title {
            color: var(--gray);
            font-size: 1.5rem;
            margin-bottom: 10px;
        }
        
        .no-readers-text {
            color: var(--gray);
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        /* تصميم خاص للأجهزة الكبيرة */
        @media (min-width: 1200px) {
            .reader-card-link:hover {
                transform: translateY(-10px);
            }
            
            .card-content-wrapper {
                padding: 3px 2px;
            }
        }
        
        /* تأثيرات اللمس للهواتف */
        @media (hover: none) {
            .reader-card-link:active .reader-card {
                transform: scale(0.98);
            }
        }










        

/* مؤشر التحميل الدائري */
.loading-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(44, 95, 45, 0.2);
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-inner {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    font-size: 12px;
    color: #2c5f2d;
    font-weight: bold;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* مؤشر تحميل داخل البطاقات */
.card-loading {
    position: relative;
    min-height: 200px;
}

.card-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(44, 95, 45, 0.2);
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* مؤشر تحميل صغير */
.small-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(44, 95, 45, 0.2);
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* مؤشر تحميل على الزر */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}        