
body{
    background:#f4f6f9;
    font-family:Cairo,sans-serif;
    }

/* مساحة للفوتر الثابت */
body {
    padding-bottom: 60px;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 55px;
    }
}

.sidebar{
    width:250px;
    height:100vh;
    background:#1E293B;
    position:fixed;
    right:0;
    top:0;
    color:#fff;
    }
.sidebar h3{
    padding:20px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.1);
    }
.sidebar a{
    display:block;
    padding:15px 20px;
    color:#ddd;
    text-decoration:none;
    transition:.3s;
    }
.sidebar a:hover{
    background:#2563EB;
    color:#fff;
    padding-right:30px;
    }
.submenu{
    display:block;
    padding:12px 45px !important;
    color:#bbb !important;
    font-size:14px;
    }
.submenu:hover{
    background:#2563EB;
    color:#fff !important;
    }
.main{
    margin-right:250px;
    padding:25px;
    }
    @media(max-width:991px){
.main{
    margin-right:0;
    padding:15px;
    }
    }
.topbar{
    background:#fff;
    padding:15px 25px;
    border-radius:15px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    margin-bottom:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    }
.card-box{
    border-radius:15px;
    color:#fff;
    padding:25px;
    box-shadow:0 10px 20px rgba(0,0,0,.1);
    }
.card-box i{
    font-size:45px;
    opacity:.3;
    float:left;
    }
.chart-card{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    }
.card{
    border:none;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    }
.card-header{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-size:22px;
    font-weight:bold;
    }
.table thead{
    background:#2563eb;
    color:#fff;
    }
.badge{
    font-size:14px;
    }
.btn{
    border-radius:10px;
    }
    @media(max-width:768px){
.table-responsive{
    font-size:13px;
    }
    }
.form-label{
    font-weight:bold;
    }
    /* textarea */
textarea.form-control{
    min-height:120px;
    }
    /* مسافة بين الحقول */
.mb-3{
    margin-bottom:22px !important;
    }
    /* results / results_analysis */
.stat{
    padding:20px;
    border-radius:15px;
    color:#fff;
    text-align:center;
    margin-bottom:20px;
    }
.table td, .table th{
    text-align: center;
    vertical-align: middle;
    }
.table th{
    background:#0d6efd;
    color:#fff;
    text-align:center;
    }
 .btn-action{
    width:38px;
    }
 .header-box{
    background:linear-gradient(135deg,#0d6efd,#2563eb);
    color:#fff;
    padding:20px;
    border-radius:18px;
    margin-bottom:20px;
    }

    
    /* ===============================
   Statistics Cards
================================= */

.stat-box{
    color:#fff;
    border-radius:18px;
    padding:22px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.3s;
    position:relative;
    overflow:hidden;
}

.stat-box:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.stat-box::before{
    content:"";
    position:absolute;
    width:90px;
    height:90px;
    background:rgba(255,255,255,.15);
    border-radius:50%;
    left:-20px;
    top:-20px;
}

.stat-box h3{
    font-size:34px;
    font-weight:700;
    margin-bottom:8px;
}

.stat-box p{
    margin:0;
    font-size:16px;
    font-weight:600;
    opacity:.95;
}

/* الأزرق */
.bg-blue{
    background:linear-gradient(135deg,#2563eb,#1e40af);
}

/* الأخضر */
.bg-green{
    background:linear-gradient(135deg,#16a34a,#15803d);
}

/* البرتقالي */
.bg-orange{
    background:linear-gradient(135deg,#f59e0b,#d97706);
}

/* الأحمر */
.bg-red{
    background:linear-gradient(135deg,#ef4444,#b91c1c);
}

/* للموبايل */
@media(max-width:768px){

    .stat-box{
        margin-bottom:15px;
        padding:18px;
    }

    .stat-box h3{
        font-size:28px;
    }

    .stat-box p{
        font-size:15px;
    }

}

.footer{
    width:100%;
    clear:both;
    margin-top:30px;
}

.section-line2{
    height:3px;
    background:linear-gradient(90deg,#0d6efd,#20c997,#ffc107);
}





/* الموبايل */ /* الموبايل *//* الموبايل */

/* =========================================
   القائمة الجانبية - الكمبيوتر
   ========================================= */

.sidebar {
    width: 250px;
    height: 100vh;
    background: #1E293B;
    position: fixed;
    right: 0;
    top: 0;
    color: #fff;

    /* التمرير */
    overflow-y: auto;
    overflow-x: hidden;

    direction: rtl;
    z-index: 1000;
}

/* شريط التمرير */
.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-track {
    background: #172033;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================
   القائمة الجانبية - الموبايل
   ========================================= */

.offcanvas {
    height: 100vh;
}

.offcanvas-body {
    overflow-y: auto;
    overflow-x: hidden;
    direction: rtl;
}

/* شريط التمرير للموبايل */
.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: #172033;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 10px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}




body {
    background: #f5f7fa;
    font-family: Tahoma, Arial, sans-serif;
}

.report-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.report-header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
   
    padding: 20px;
}

.report-header h3 {
    margin: 0;
    font-weight: bold;
}

.filter-box {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .06);
}
body {
    font-family: 'Cairo', sans-serif;
    background: #f5f7fb;
    color: #212529;
    }
    .page-title {
    font-weight: 800;
    color: #0d6efd;
    }
    .report-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0,0,0,.07);
    overflow: hidden;
    }
    .report-card .card-header {
    background: linear-gradient(
    135deg,
    #0d6efd,
    #0b5ed7
    );
    color: #fff;
    padding: 18px 22px;
    }
    .filter-label {
    font-weight: 700;
    margin-bottom: 7px;
    color: #343a40;
    }
    .form-select {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
    }
    .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.12);
    }
    .btn-show {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 700;
    padding: 0 28px;
    }
    .report-info {
    background: #eef5ff;
    border: 1px solid #d7e7ff;
    border-radius: 12px;
    padding: 14px 18px;
    }
    .report-info span {
    font-weight: 700;
    }
    @media (max-width: 767px) {
    .report-card .card-header {
    text-align: center;
    }
    .btn-show {
    width: 100%;
    }
    
    }

/* =========================================================
results/student_progress.php
========================================================= */
/* =========================================================
التقرير - سطح المكتب
========================================================= */
.report-table-wrapper {
width: 100%;
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
margin: 0;
padding: 0;
-webkit-overflow-scrolling: touch;
}
.report-table {
width: 100%;
margin: 0 !important;
border-collapse: collapse;
}
/* =========================================================
الموبايل
========================================================= */
@media (max-width: 767.98px) {
/* الصفحة */
html,
body {
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
overflow-x: hidden;
}
/* المنطقة الرئيسية */
.main {
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
overflow-x: hidden;
}
/* الحاوية الرئيسية */
.main > .container-fluid {
width: 100%;
max-width: 100%;
margin: 0;
padding-left: 0 !important;
padding-right: 0 !important;
}
/* =====================================================
بطاقة التقرير
===================================================== */
.main .report-card {
width: 100%;
max-width: 100%;
margin-left: 0 !important;
margin-right: 0 !important;
border-radius: 0 !important;
}
/* عنوان البطاقة */
.main .report-card .card-header {
border-radius: 0 !important;
padding: 14px 15px !important;
}
/* مهم:
لا نلغي padding كل card-body في الصفحة
*/
.main .report-card .card-body {
padding-left: 0 !important;
padding-right: 0 !important;
}
/* =====================================================
جدول التقرير
===================================================== */
.report-table-wrapper {
display: block;
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
overflow-x: auto;
overflow-y: hidden;
/* يسمح بالسحب باللمس */
-webkit-overflow-scrolling: touch;
touch-action: pan-x;
}
.report-table-wrapper .report-table {
width: max-content !important;
min-width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
border-collapse: collapse;
}
/* =====================================================
خلايا الجدول
===================================================== */
.report-table th,
.report-table td {
white-space: nowrap;
padding: 8px 10px !important;
}
/* =====================================================
رأس الجدول
===================================================== */
.report-table thead th {
white-space: nowrap;
}
/* =====================================================
إزالة أي مسافة جانبية من الجدول
===================================================== */
.report-table-wrapper,
.report-table-wrapper table {
border-radius: 0 !important;
}
}
/* ==========================================
   Layout
========================================== */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fb;
}

.main {
    flex: 1;
}

.main-footer {
    width: 100%;
    margin-top: 20px;
    padding: 12px 10px;
    background: linear-gradient(135deg, #198754, #0d6efd);
    color: #fff;
    text-align: center;
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
}

.footer-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    line-height: 1.5;
}

.footer-line:first-child {
    font-size: 14px;
    font-weight: bold;
}

.footer-line:last-child {
    font-size: 12px;
}

.footer-line a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.footer-line span {
    opacity: .6;
    margin: 0 2px;
}


/* الموبايل */
@media (max-width: 768px) {

    .main-footer {
        padding: 9px 5px;
    }

    .footer-content {
        gap: 3px;
    }

    .footer-line {
        font-size: 10px !important;
        white-space: nowrap;
    }

    .footer-line:first-child {
        font-size: 11px !important;
    }

}
@media (max-width: 767.98px) {

    .main {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}
.footer-line a {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 4px;

    color: #fff;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 6px;

    font-weight: bold;

    transition: all 0.2s ease;
}

.footer-line a:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}



