﻿@font-face {
	font-family: NeoSansArabic;
	src: url('../fonts/NeoSansArabic.eot');
	src: url('../../fonts/NeoSansArabic.eot?#iefix') format('embedded-opentype'),
	url('../fonts/NeoSansArabic.woff') format('woff'),
	url('../fonts/NeoSansArabic.ttf') format('truetype'),
	url('../fonts/NeoSansArabic.svg#NeoSansArabic') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: Cairo;
	src: url('../fonts/Cairo-VariableFont_slnt,wght.ttf');
	src: url('../../fonts/Cairo-VariableFont_slnt,wght.ttf?#iefix') format('embedded-opentype'),
		font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: DroidKufi-Regular;
	src: url('../fonts/DroidKufi-Regular.eot');
	src: url('../fonts/DroidKufi-Regular.eot?#iefix') format('embedded-opentype'),
	url('../fonts/DroidKufi-Regular.woff') format('woff'),
	url('../fonts/DroidKufi-Regular.ttf') format('truetype'),
	url('../fonts/DroidKufi-Regular.svg#diavlo_medium_ii_37_1-webfont') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: Tajawal-Light;
	url('../fonts/Tajawal-Light.ttf') format('truetype'),
	font-weight: normal;
	font-style: normal;
}


html, body {
font-weight: normal!important;
}

html {
    -webkit-font-smoothing: antialiased;
}

h1 {font-size:1.3em;}
h2 {font-size:0.8em;}
h3 {font-size:30px;}
h4 {font-size:24px;}
h5 {font-size:20px;}
h6 {font-size:18px;}

h2 {
  padding-bottom: 14px;
}

        body {
        background-color:#E1E1E1;
        
            margin: 0;
            padding: 0px;
             text-decoration: none;
        }


.header {
	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
    display: flex;
    align-items: center;   /* توسيط عمودي */
    background: white;
    padding: 30px;
    margin-bottom: 20px;
   border-bottom: 50px solid #4BB8A8;  /* ألخط تحت البنر */

}




.content {
    flex: 1;               /* يأخذ كل المساحة المتبقية */
    text-align: center;    /* يوسّط النصوص أفقيًا */
    
}

.content h1 {
    margin: 0;
    font-size: 40px;
    text-align: center;    /* توسيط العنوان تمامًا */
	margin-bottom:20px;
	margin-left:5em;
}

.content p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #555;
    text-align: center;    /* توسيط الفقرة تمامًا */
	margin-right:11em;
}

.image {
    flex-shrink: 0;       /* لا يصغر */
}
.oqba-img2 {
    width: 250px;
    height: auto;
    display: block;
}

		
        .charts-grid {
	        font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            display: grid;
            gap: 20px;
            margin-bottom: 30px;
             text-decoration: none;

        }
        
 .charts-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* الشاشات المتوسطة والكبيرة (أكثر من 992px) - 4 أعمدة ثابتة */
@media (min-width: 992px) {
    .charts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* الأجهزة اللوحية (768px - 991px) - 2 أعمدة */
@media (min-width: 768px) and (max-width: 991px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* تحسينات للجوال */
@media (max-width: 767px) {
    .charts-grid {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}       
        .chart-card {
        	        font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
             text-decoration: none;            
        }
        .chart-title {
            font-size:1.2em;
            color: #276B61;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #999999;
        }
        .ranking-list {
             font-size:0.9em;
            list-style: none;
            padding:15px;
            margin: 0;
             text-decoration: none;            
        }
        .ranking-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 7px 8px;
            margin-bottom: 8px;
            background: #F4F4F4;
            border-radius: 5px;
            border-right: 3px solid #666666;
            border-left: 3px solid #666666;
            transition: all 0.3s;
                         text-decoration: none;
        }
        .ranking-item:hover {
            transform: translateY(-3px);            
        }
        .rank-badge {
            background: #007bff;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            
            margin-left: 10px;
                         text-decoration: none;
        }
        .rank-1 { background: #ffc107; border-color: #ffc107; }
        .rank-2 { background: #6c757d; border-color: #6c757d; }
        .rank-3 { background: #cd7f32; border-color: #cd7f32; }
        .violation-count {
            background: #dc3545;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9em;
            
                         text-decoration: none;
        }
        .nav-cards {
			font-family: DroidKufi-Regular;
			 font-size:0.8em;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }
        .nav-card {

            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            text-decoration: none;
            color: #333;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            transition: all 0.3s;
        }
        .nav-card:hover {
            transform: translateY(-5px);
            text-decoration: none;
            color: #333;
            background-color: #f8f9fa;
                         text-decoration: none;
        }
        .nav-card h3 {
			font-family: DroidKufi-Regular;
			 font-size:1.3em;
            margin-top: 0;
            color: #666666;
        }
        .icon {
            font-size: 3em;
            margin-bottom: 15px;
        }
        .student-link {
            color: #666666;
            text-decoration: none;
            
            transition: color 0.3s;
                         text-decoration: none;
        }
        .student-link:hover {
            color: #D27E00;
             text-decoration: none ;            
        }
        .class-link {
            color: #666666;
            text-decoration: none;
            
            transition: color 0.3s;
        }
        .class-link:hover {
            color: #009999;
             text-decoration: none;        }
        .student-info {
            font-size: 0.9em;
            color: #666;
            margin-top: 5px;
        }
        .class-info {
            font-size: 0.85em;
            color: #888;
            margin-top: 3px;
        }
		
		
	.icon {
    font-size: 3em;
    margin-bottom: 10px;
}

	
		


.foter{
	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
	background-color:#FFFFFF;
    display: flex;
    align-items: center;   /* توسيط عمودي */
    padding: 30px;
    width:100%;
    border-radius: 25px 25px 0 0;
        margin: 0;
         margin-top: auto;
}

.contentfoter {
    flex: 1;               /* يأخذ كل المساحة المتبقية */
    text-align: center;    /* يوسّط النصوص أفقيًا */
}


.contentfoter p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #666666;
    text-align: center;    /* توسيط الفقرة تمامًا */
}

.imagefoter {
    flex-shrink: 0;       /* لا يصغر */
}
.oqba-img2foter {
    width: 120px;
    height: auto;
    display: block;
}

/* Responsive للجوال */
@media (max-width: 768px) {
    .foter {
                text-align: center;
                font-size:0.9em;
        text-align: center;
		    padding: 10px;

    }

    .contentfoter {
        width: 100%;               /* النصوص تأخذ عرض كامل الصفحة */
    }
.contentfoter p {
    font-size: 12px;
    text-align: center;    /* توسيط الفقرة تمامًا */
	margin-right:0em;
}
    .contentfoter h1 {
        width: 100%;               /* العنوان يأخذ العرض بالكامل */
        text-align: center;        /* توسيط النص */
	font-size: 20px;
    text-align: center;    /* توسيط الفقرة تمامًا */
	margin-right:0em;
    }

    .imagefoter {
        margin-bottom: 15px;
    }

    .oqba-img2foter {
        width: 150px;
    }
}





/*STUDENT*/
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 0px;
        }
        th, td {
            padding: 12px;
            text-align: right;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #666666;
            color: white;
        }
        tr:hover {
            background-color: #f5f5f5;
        }
        .filters {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 5px;
            margin-bottom: 20px;
            border: 1px solid #dee2e6;
        }
        .filter-group {
            width: 100%;
            max-width:800px;
            display: inline-block;
            margin-left: 15px;
            margin-bottom: 2px;
            vertical-align:middle;
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            
        }
        .filter-group label {
            display: block;
            font-size:0.9em;
            margin-bottom: 5px;
            
            color: #495057;
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            
        }
        .filter-group select, .filter-group input {
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 10px;
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            font-size:0.7em;
            width: 100%;

        }
        .filter-buttons {
            margin-top: 10px;
            display: inline-block;
            vertical-align: bottom;
        }
        .results-info {
            background: #FFD0B0;
            padding: 12px;
            border-radius: 5px;
            margin-bottom: 15px;
            border-right: 4px solid #007bff;
            
        }
        .no-results {
            text-align: center;
            padding: 40px;
            color: #6c757d;
            font-size: 18px;
        }
        .instruction {
            background: #fff3cd;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            border-right: 4px solid #ffc107;
            text-align: center;
        }

        .search-info h3{
        font-size:1em;
        }
        .search-info p{
        font-size:0.7em;
        }
        .search-info {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            padding: 20px;
            text-align: center;
            margin: 20px 0;
        }



.btn {
font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
  outline: 0;
  align-items: center;
  justify-content: space-between;
  background: #40B1A0;
  min-width: 200px;
  border: 0;
  border-radius: 10px;
  box-sizing: border-box;
  padding:8px;
  color: #fff;
  font-size:1em;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
}

.btn:hover {
background-color:#D09C46;
  opacity: .70;
}

titloqb{
font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
  font-size: 30px;
  text-align:center;
  color:#FF9900;
  background-color:#F4F4F4;
  padding-bottom:30px;
  padding-top:30px;
   border-radius: 10px;

	
}


/*التفاصيل*/
.nav-links {
    display: grid;
    grid-template-columns: 1fr auto auto; /* تغيير الأعمدة */
    border-radius: 15px;
    padding:0px;
    margin: 0 auto;
    max-width: 1200px;
    font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;
}



.nav-links .btn {
    font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;
    outline: 0;
    align-items: center;
    justify-content: center;
    background: #40B3A2;
    min-width: 80px;
    max-width: 250px;
    width: auto;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    box-sizing: border-box;
    padding: 8px 16px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links .btn:hover {
    background-color: #DF9200;
    opacity: .85;
}



/*جدييييييييييييييييييد*/




        .container {
            max-width: 1400px;
            font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;
        }
        
        /* غلاف البنر الممتد */
        .banner-wrapper {
            width: 100%;

        }
        
        /* تصميم البنر */
        .banner {
            background: rgba(255, 255, 255,1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 10px;
            color: white;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .banner-image {
            flex-shrink: 0;
            width: 230px;
            height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .banner-image img {
            width: 90%;
            height:90%;
            object-fit: contain;
        }
        
        .banner-content {
            flex: 1;
            text-align: center;
        }
        
        .banner-title {
            font-family: DroidKufi-Regular, tahoma, Arial, Verdana, sans-serif;     
            font-size: 2.8rem;
            margin-bottom: 10px;
            color:#D6A85C;
        }
        
        .banner-subtitle {
            font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;         
            font-size: 1.4rem;
            opacity: 0.9;
            color:#999999;

        }
        
/*--------------------------------------------------------------القائمة الممتده---------------------------------------------*/
  /* التنسيقات الأساسية */
    /* البنر - بدون هوامش */
        .navbar-wrapper {
        /*    background: linear-gradient(135deg, #2F8275, #40B3A2);   */
            border-bottom:0px solid #FF9933;
            width:100%;
        }
        
        /* تصميم الناف بار بمحاذاة اليمين تماماً */
        .navbar {
            border-top: 15px solid #764ba2;
            background:#D6A85C;
            border-radius: 0 0 20px 20px;
            font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;         
            max-width: 1400px;
            color:#FFFFFF;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: flex-end;
        }
        
        .nav-buttons {
            display: flex;
            margin-left: auto; /* يدفع الأزرار إلى أقصى اليمين */
        }
        
        .nav-btn {
            position: relative;
            padding: 15px 35px;
            color: #FFFFFF;
            text-decoration: none;
            font-size: 0.9em;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            border-left: 1px solid #f0f0f0;
        }
        
        .nav-btn:last-child {
            border-left: none;
        }
        
        .nav-btn i {
            margin-left: 10px;
            font-size: 1em;
        }
        
        .nav-btn:hover {
            background: #f8f9fa;
            color: #159895;
        }
        
        .nav-btn.active {
            background: #40B1A0;
            color: white;
        }
        
        .nav-btn::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 3px;
            background: #ffc107;
            transition: width 0.3s ease;
        }
        
        .nav-btn:hover::after,
        .nav-btn.active::after {
            width: 100%;
        }


/*------------------------------------------*/    
    
    /* القائمة */
    .navbar-wrapper {
        width: 100%;
    }
    
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: 70px;
        position: relative;
        width: 100%;
        max-width: 1400px;
    }
    
    /* القائمة العادية للشاشات الكبيرة */
    .nav-buttons {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .nav-btn {
        text-decoration: none;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
        height:40px;
    }
    
    .nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color:#7E5B21;
    }
    
    .user-info {
        display: flex;
        align-items: center;
        color: white;
        white-space: nowrap;
        font-size: 14px;
        margin-right: 10px;
    }
    
    /* زر القائمة للجوال - في اليمين */
    .menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        
        margin-left: auto;
        order: 2;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav {
        font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;         
        position: fixed;
        background:#40B1A0 ;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 998;
        visibility: hidden;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        width: 70%;
        transform: translateX(100%);
        border-radius: 20px 0px 0px 20px ;
        top:10px;
    }
    
    .mobile-nav.active {
        justify-content: flex-end;

        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }



/* إعادة تعيين محاذاة النص للقائمة المتنقلة */
.mobile-nav {
    text-align: right !important;
    direction: rtl !important;
}

.mobile-nav-buttons {
    text-align: right !important;
    direction: rtl !important;
}

.mobile-nav-btn {
    text-align: right !important;
    direction: rtl !important;
    justify-content: flex-start !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

.mobile-user-info {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

/* تأكيد المحاذاة لجميع العناصر داخل القائمة */
.mobile-nav * {
    text-align: right !important;
    direction: rtl !important;
}



  
    .mobile-nav-buttons {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
    }
    
    .mobile-nav-btn {
        text-decoration: none;
        color: white;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        font-size:0.8em;
        width: 100%;
        text-align: right;
        justify-content: flex-end;
        text-align: right;
         padding-right: 25px;
    }
    
    .mobile-nav-btn:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-user-info {
        padding: 15px 20px;
        color: white;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.1);
        font-size: 14px;
        width: 100%;
        text-align: right;
        font-size:0.8em
    }
    
    /* قائمة الأدمن المنبثقة */
    .admin-dropdown {
        position: relative;
    }
    
    .admin-btn {
        background: transparent;
        border: none;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        border-left: 1px solid #f0f0f0;
        font-size:0.9em;
    }
    
    .admin-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .admin-dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: linear-gradient(135deg, #34495e, #5d7aa7);
        min-width: 180px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 1002;
        border-radius: 5px;
        overflow: hidden;
    }
    
    .admin-dropdown-content a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        font-size: 14px;
        text-align: right;
    }
    
    .admin-dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .admin-dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .admin-dropdown:hover .admin-dropdown-content {
        display: block;
    }
    
    /* تأثيرات الحركة لزر القائمة */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
  .close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}  
    /* استعلامات الوسائط للتجاوب */
    @media (max-width: 1024px) {
        /* إخفاء القائمة العادية وإظهار زر القائمة */
        .nav-buttons {
            display: none !important;
        }
        
        .menu-toggle {
            display: flex;
        }
        
        .navbar {
            justify-content: flex-end;
        }
        
        
        /* إخفاء dropdown الأدمن على الجوال */
        .admin-dropdown-content {
            display: none !important;
        }
        
        .admin-dropdown:hover .admin-dropdown-content {
            display: none !important;
        }
    }
   
    @media (max-width: 768px) {
        
      .banner{
        padding: 0px 0px;
    }
      
    }
    
    
    @media (min-width: 1025px) {
        /* إخفاء القائمة المتنقلة وزر القائمة على الشاشات الكبيرة */
        .mobile-nav {
            display: none !important;
        }
        
        .menu-toggle {
            display: none !important;
        }
        
        /* إظهار القائمة العادية على الشاشات الكبيرة */
        .nav-buttons {
            display: flex !important;
        }
    }
    
    /* طبقة الخلفية المعتمة عند فتح القائمة */
    .overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
        display: none;
    }
    
    .overlay.active {
        display: block;
    }
    

/*--------------------------------------------------- نهاية القائمة الممتده--------------------------------------------------*/        
        /* المحتوى الرئيسي */
        .main-content {
            padding:10px;
            margin-top:30px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        .section-titleoner{
           width:100%;
            color: #1a5f7a;
            font-size: 0.9em;
            margin-bottom:0px;
            padding-bottom: 10px;
            border-bottom: 0px solid #ffc107;
            display: inline-block;
        }
        .section-titleoner h3{
        background: #F2F2F2 !important;
        padding:10px;
        border-right: 5px solid #999999!important;
        border-radius: 5px;
        }
        
        .section-title {
        width:100%;
            font-size: 1.2em;
            margin-bottom:0px;
            padding-bottom: 10px;
            border-bottom: 0px solid #ffc107;
            display: inline-block;
        }
        .section-title h3{
        background: #F2F2F2 !important;
        padding:10px;
        border-right: 5px solid #999999!important;
        border-radius: 5px;
        text-align:right;
        }
        
        .features {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-top: 30px;
        }
        
        .feature-box {
            flex: 0 0 30%;
            background: #f8f9fa;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 25px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-top: 4px solid #159895;
        }
        
        .feature-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: #1a5f7a;
            margin-bottom: 15px;
        }
        
        .feature-title {
            font-size: 1.3rem;
            margin-bottom: 12px;
            color: #1a5f7a;
        }
        
        .feature-desc {
            color: #666;
            line-height: 1.6;
        }
        
        /* تصميم متجاوب */
        
        
        
        
        
/*الفصوووووووووووووووووووووووووووووووووووول*/ 

        .class-info {
            background: #F2F2F2;
            padding: 20px;
            border-radius: 5px;
            margin-bottom: 30px;
            border-right: 4px solid #3FAF9F;
        }
        .class-info h2{
            background: #FFFFFF;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 30px;
            border-bottom:4px solid #3EAE9D;
            font-size:20px;
        }
        .class-infoto{
            background: #F4F4F4;
            padding: 10px;
            border-radius: 5px;
            border-right:4px solid #3EAE9D;
            font-size:20px;
        }
        .student-link {
            color: #007bff;
            text-decoration: none;
        }
        .student-link:hover {
            text-decoration: none;
        }
        .violation-badge {
            background: #dc3545;
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            
        }
        .no-violations {
            text-align: center;
            padding: 40px;
            color: #6c757d;
            background: #f8f9fa;
            border-radius: 5px;
            margin: 20px 0;
        }
        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            border-right: 4px solid #dc3545;
        }





        .chart-card {
        	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
             text-decoration: none;            
        }
        .chart-card a{
        	 font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
             text-decoration: none;
             color:#666666;            
        }



/* أنماط إضافية لنظام التسجيل */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    margin-right: auto;
}

.user-name {
    font-size: 14px;
}

.logout-btn {
    background: #e74c3c !important;
}

.logout-btn:hover {
    background: #c0392b !important;
}


/*صفجة الدخول*/

        .login-container {
        	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            max-width: 400px;
            margin: 100px auto;
            padding: 30px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .login-header h2 {
        	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;     
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
            
        }
        
        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus {
            border-color: #3498db;
            outline: none;
        }
        
        .login-btn {
        	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
            width: 100%;
            padding: 12px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .login-btn:hover {
            background: #2980b9;
        }
        
        .error-message {
            background: #e74c3c;
            color: white;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .login-logo {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .login-logo img {
            max-width: 100px;
            height: auto;
        }
		
		
/*-------------------------------------------------------------------------------------------------الطابور*/		
/* التنسيقات الأساسية للجدول */
        

        .stat-card {
        font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
           border-bottom: 15px solid #9144b3;  /* ألخط تحت البنر */
          box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
            background: #FFFFFF;
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            transition: transform 0.3s;
        }
        

        .stat-card:hover {
            transform: translateY(-10px);
        }
        
        .today-date {
            background: #3FB0A0;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 1em;
            color: #FFFFFF;
        }
        
        
        
        
        
        .progress-container {
            margin: 20px 0;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.9em;
        }
        
        .progress-bar {
            width: 100%;
            height: 25px;
            background: #E9E9E9;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #28a745, #20c997);
            transition: width 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            
            font-size: 0.9em;
        }
        
        /* جدول المعلمين */
        .teachers-table-container {
            overflow-x: auto;
           border-collapse: collapse;
            border-radius: 10px;
            background: #FCFCFC;
           font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
           border: 1px solid #ccc;

        }
      
        .teachers-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
        }
        
        .teachers-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
  border-radius: 20px;            
        }
        
        .teachers-table th {
            padding: 15px 10px;
            text-align: right;
        }
        
        .teachers-table td {
            padding: 12px 10px;
            border-bottom: 1px solid #f0f0f0;
            text-align: right;
            vertical-align: middle;
        }
        
        .teacher-row:hover {
            background-color: #F2F4F7;
        }
        
        .teacher-row.saved {
            background-color: #f0fff4;
        }
        
        /* تنسيق معلومات المعلم */
        .teacher-info {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666666;
    text-decoration: none;
        }
        
.teacher-name-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.teacher-name-link:hover {
    color: #FFAF37;
    text-decoration: none;
    transform: translateY(-1px);
}
       
        .teacher-icon {
            font-size: 18px;
            color: #3FB0A0;
        }
        
               /* تنسيق خيارات الحضور */
        /* تنسيق attendance-options للشاشات الكبيرة */
        .attendance-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .attendance-options label {
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
                
        .attendance-options label:hover {
            background-color: #f8f9fa;
        }
        
        .attendance-options input[type=radio] {
            margin: 0;
        }
        
        /* تنسيق حالة الحضور */
        .attendance-status {
            padding: 6px 12px;
            border-radius: 20px;
            text-align: center;
            display: inline-block;
        }
        
        .status-present {
            background-color: #d4edda;
            color: #155724;
        }
        
        .status-late {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .status-absent {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        /* تنسيق حقل الملاحظات */
        .notes-input {
            width: 100%;
            padding: 5px 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 1em;
            transition: border-color 0.2s;
        }
        
        .notes-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
        }
        
        /* تنسيق الأزرار */
        .btn-edit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s;
        }
        
        .btn-edit:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #338C7E 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 9px 24px;
            border-radius:10px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .form-actions {
            text-align: center;
            margin-top: 20px;
            padding: 20px;
        }
        
        /* مربع البحث */
        .search-box {
            margin-bottom: 20px;
        }
        
        .search-input {
            background: #F5F5F5;
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 1em;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        /* إشعار الحفظ التلقائي */
        .auto-save-notice {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #28a745;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .view-all-link {
            display: inline-block;
            background: #3FB0A0;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            margin-top: 15px;
            transition: background 0.3s;
        }
        
        .view-all-link:hover {
            background: #369b8c;
            color: white;
        }
        
        .no-teachers {
            text-align: center;
            padding: 40px;
            color: #666;
            font-style: italic;
            background: #f8f9fa;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        
        /* تحسينات إضافية للواجهة */
        .attendance-options input[type=radio]:checked + span {
            
        }
        
        .teacher-row {
            transition: all 0.3s ease;
        }
        
        .teacher-row.saved:hover {
            background-color: #e8f5e8;
        }
        
        /* تأثيرات بصرية عند الحفظ */
        .saving {
            opacity: 0.7;
            pointer-events: none;
        }
        
        .saved-success {
            animation: highlight 1.5s ease;
        }
        
        @keyframes highlight {
            0% { background-color: #d4edda; }
            100% { background-color: #f0fff4; }
        }
        
        /* تنسيق الرسائل مع تأثيرات الانتقال */
.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    
    text-align: center;
    transition: all 0.5s ease;
    opacity: 1;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auto-save-notice {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    
    transition: all 0.5s ease;
    opacity: 1;
}

/* تأثيرات للاختفاء */
.message.fade-out,
.auto-save-notice.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/*--------------------------------------الصفحة الرئيسية------------------------------------------*/

       .supervisors-card {
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;     
            background:#FFFFFF;
            color: #4E4E4E;
            border-radius:30px 30px 10px 10px;
            padding: 20px;
            margin-bottom: 20px;
         /*   box-shadow: 0 4px 15px rgba(0,0,0,0.3); */
            position: relative;
        }
                /* بطاقة المشرفين */
        
        .supervisors-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 15px;
            flex-wrap: wrap;
            gap: 15px;
        }
        

        .supervisors-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            border-bottom: 2px solid gray(255,255,255,1.5);
            padding-bottom: 10px;
        }
        .supervisors-title {
            font-size: 1.6em;
            
            margin: 0;
            padding:15px 0 15px 0;
        }
        .today-date {
            background:#FFFFFF rgba(255,255,255,0.2);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9em;
        }
        .breaks-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin:20px;
        }
        
        .break-section {
            background:rgba(155,155,155,0.1);
            padding: 15px;
            border-radius: 30px;
            border: 1px solid #EBEBEB;
        }
        .break-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 3px solid #C8C8C8;
        }
        .break-name {
            
            font-size: 1.1em;
        }
        
        @media (max-width: 768px) {
            .breaks-container {
                grid-template-columns: 1fr;
            }
        }
        .teachers-count {
            background:#CC0000;
            padding: 5px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            color:#FFFFFF;
        }
        .teachers-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .teacher-item {
            padding: 8px 0;
            border-bottom: 1px solid #DADADA;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .teacher-info {
            display: flex;
            align-items: center;
            flex: 1;
        }
        .teacher-icon {
            margin-left: 8px;
            font-size: 1.1em;
        }
        .teacher-actions {
            display: flex;
            gap: 5px;
            align-items: center;
        }
        .whatsapp-btn {
            background: #3FB1A0;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            text-decoration: none;
            font-size: 0.9em;
            transition: all 0.3s;
        }
        .whatsapp-btn:hover {
            background: #128C7E;
            transform: scale(1.1);
        }
        .no-supervisors {
            text-align: center;
            padding: 20px;
            font-style: italic;
        }
        .view-all-link {
            display: block;
            text-align: center;
            margin-top: 15px;
            color:#333333 ;
            text-decoration: none;
            background:#E9E9E9;
            padding: 10px 15px;
            border-radius: 5px;
            transition: background 0.3s;
        }
        .view-all-link:hover {
            background:#3FB1A0;
        }
        .notification-badge {
            position: absolute;
            top:-25px;
            left:0px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9em;
            
        }
        .attendance-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .attendance-options label {
            display: flex;
            align-items: center;
            font-size:0.8em;
            cursor: pointer;
            padding: 5px 8px;
            border-radius: 5px;
            transition: background 0.3s;
            background:#E8E8E8;
        }
        .attendance-options label:hover {
            background:#F0F0F0;
        }
        .attendance-status {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .notes-btn {
            background: #ffc107;
            color: black;
            border: none;
            border-radius: 20px;
            padding: 5px 12px;
            font-size: 0.8em;
            cursor: pointer;
        }
        .save-btn {
            border: none;
            cursor: pointer;
            padding: 10px 15px;
            border-radius: 5px;
            color: white;
            
            transition: all 0.3s;
        }
        .save-first {
            background: #40B1A0;
        }
        .save-second {
            background: #3FB1A0;
        }
        .save-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        .teacher-name {
            min-width: 120px;
        }
        
        
        
        
        
        
        
        /* تنسيق الـModals */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    direction: rtl;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 14px;
    box-sizing: border-box;
}


/*--------------------------------المشرفين-----------------------*/

        .supervision-form {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            margin: 20px 0;
            border: 1px solid #dee2e6;
        }
        .supervision-form h3{
        padding:10px;
        color:#D6A85C;
        font-size:1.5em;      
        }
        
        
        .supervision-list {
            margin-top: 20px;
        }
        
        .supervision-list h3{
	     font-size:1em;
        padding:10px; 
        color:#D6A85C;     
                   }
         .titloqb{
	     font-size:1.5em;
        padding:10px;
        color:#D6A85C;
                      }          
                   
        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }
        .form-group {
            flex: 1;
            min-width: 200px;
        }
        .filters {
            background: #e9ecef;
            padding: 15px;
            border-radius: 5px;
            margin: 15px 0;
        }
        .day-section {
            background: white;
            margin: 20px 0;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            overflow: hidden;
        }
        .day-header {
            background: #666666;
            color: white;
            padding: 15px 20px;
            margin: 0;
            font-size: 1.2em;
        }
        .breaks-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        @media (max-width: 768px) {
            .breaks-container {
                grid-template-columns: 1fr;
            }
        }
        .break-section {
            padding: 15px;
            border-right: 1px solid #dee2e6;
        }
        .break-section:last-child {
            border-right: none;
        }
        .break-header {
            color: #2c3e50;
            padding: 10px 0;
            margin: 0 0 15px 0;
            font-size: 1.1em;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #3498db;
        }
        .break-header:first-child {
            border-bottom: 2px solid #AAB1BF;
        }
        .break-header:last-child {
            border-bottom: 2px solid #2ecc71;
        }
        .teacher-card {
            background: white;
            padding: 12px;
            margin-bottom: 10px;
            border-radius: 8px;
            border: 1px solid #ddd;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .teacher-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        .teacher-info {
            flex: 1;
        }
        .teacher-name {
            
            margin-bottom: 5px;
            color: #2c3e50;
        }
        .teacher-meta {
            font-size: 0.8em;
            color: #7f8c8d;
        }
        .supervision-actions {
            display: flex;
            gap: 8px;
        }
        .no-results {
            text-align: center;
            padding: 20px;
            color: #6c757d;
            background: #f8f9fa;
            border-radius: 5px;
        }
        .break-empty {
            padding: 30px 20px;
            text-align: center;
            color: #95a5a6;
            font-style: italic;
            background: #ecf0f1;
            border-radius: 8px;
            border: 2px dashed #bdc3c7;
        }
        .stats-badge {
            background: #338C7E;
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8em;
            
        }
        .statsbadgetor {
            background: #990000;
            color: white;
            padding: 10px 10px;
            border-radius: 20px;
            font-size: 0.8em;
        }

        .break-icon {
            font-size: 1.2em;
            margin-left: 8px;
        }
        .first-break .break-icon {
            color: #e74c3c;
        }
        .second-break .break-icon {
            color: #2ecc71;
        }
        
        
/*--------------------------------------------------------------القائمة الممتده---------------------------------------------*/

.text-left {
    font-size: 1.2em;
    text-align: left !important;}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}
.tomyn {
    margin:5px;
    font-size:0.9em;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}


/*--------------------------------------------------------------شواهد المعلمين---------------------------------------------*/
       
       .evidence-card {
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;     
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            color: white;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            border: none;
        }
        
        .elements-card {
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;          
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            color: white;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            border: none;
        }
        
        .evidence-item, .element-item {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            color:black;
        }
        
        .evidence-item {
            border-right: 15px solid #CCCCCC;
        }
        
        .element-item {
            border-right: 5px solid #667eea;
        }
        
        .status-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8em;
            
        }
        
        .status-pending { background: #fff3cd; color: #856404; }
        .status-approved { background: #d4edda; color: #155724; }
        .status-rejected { background: #f8d7da; color: #721c24; }
        
        .role-badge {
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8em;
            
        }
        
        .role-teacher { background: #e3f2fd; color: #1976d2; }
        .role-supervisor { background: #f3e5f5; color: #7b1fa2; }
        .role-agent { background: #e8f5e8; color: #388e3c; }
        .role-principal { background: #fff3e0; color: #f57c00; }
        
        .percentage-warning {
            color: #dc3545;
            
        }
        
        .percentage-ok {
            color: #28a745;
            
        }
        
        .tab-content {
            font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;     
            background:#FFFFFF;
            border-radius: 10px;
            padding: 20px;
            margin-top: 0px;
        }
        
        .nav-tabs .nav-link.active {
            background:#40B1A0;
            border: none;
        }
        
        .nav-tabs .nav-link {
            color: white;
            border: none;
            margin: 0 5px;
            background:#D6A85C;
        }
        
        .nav-tabs {
            border: none;
             font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;     

        }
        
        .points-display {
            background: #e7f3ff;
            padding: 8px 15px;
            border-radius: 20px;
            
            color: #136B9B;
        }
        
        .teacher-infothree {
            background: #E7EAED;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 10px;
            color:#CC0000;
            border-right: 5px solid #D6A85C;
        }
        
        .file-link {
            color: #007bff;
            text-decoration: none;
            
        }
        
        .file-link:hover {
            text-decoration: underline;
        }
        
        .element-details {
            background: #E9ECEF;
            padding: 10px;
            border-radius: 5px;
            margin: 10px 0;
            border-right: 5px solid #D6A85C;
        }
        
        .debug-info {
            background: #fff3cd;
            padding: 10px;
            border-radius: 5px;
            margin: 10px 0;
            font-size: 0.9em;
            color: #856404;
        }
        
/*--------------------------------------------------------------كل الشواهد---------------------------------------------*/
 
.btn-group{
    border-radius: 15px;
    direction: ltr;
    margin-left: 0;
}

.btn-group, .btn-group-vertical {
    position: relative;
    display:block;
    vertical-align: middle;
    margin-right: 0;
    margin-left: auto;
    align-self: flex-start;
}


         .teacher-cardfor {
            background: white;
            margin-bottom: 10px;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }

 
 
 .btn-primarytory {
    background: linear-gradient(135deg, #338C7E 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size:14px;
    font-weight: 600;
    transition: all 0.3s;
}


 .teacher-namefor{
 font-size:1.2em;
	
}
 .align-items-center{
 font-size:1.2em;
}  .align-items-centeroner{
 font-size:0.9em;
}
.mt-2oner{
	color:#FF0000;
}    
        .teachers-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            color: white;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
       
        .teacher-itemfor{
            background: #EEEEEE;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-right: 4px solid #2F8477;
            font-size:0.7em;
        }

        .teacher-itemfor:hover {
            transform: translateY(-10px);
            background:#AEE3C9;
        }

        
        .teacher-item:hover {
            background: #f8f9fa;
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .evidence-count {
            display: inline-block;
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            margin-right: 5px;
            color: #333;
        }
        
        
        .btn-new-window {
            background: #28a745;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8em;
            cursor: pointer;
            flex: 1;
        }
        
        .btn-new-tab {
            background: #007bff;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8em;
            cursor: pointer;
            flex: 1;
        }
        
        .search-box {
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .header-buttons {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .btn-back {
            background: #6c757d;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            display: inline-block;
        }
         .teacher-type-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 11px;
            
            margin-top: 8px;
        }
        .type-teacher { background: #e3f2fd; color: #1976d2; }
        .type-supervisor { background: #f3e5f5; color: #7b1fa2; }
        .type-activity_leader { background: #e8f5e8; color: #388e3c; }
        .type-lab_preparator { background: #fff3e0; color: #f57c00; }
        .type-agent { background: #fce4ec; color: #c2185b; }
        .type-administrative { background: #e0f2f1; color: #00796b; }
        .type-principal { background: #fff3e0; color: #f57c00; }
        
        .teacher-type-section {
            margin: 10px 0;
            text-align: left;
        }
        
        .type-edit-form {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 8px;
            margin-top: 8px;
            border: 1px solid #e9ecef;
        }
        
        .type-edit-form select {
            font-size: 12px;
            padding: 4px 8px;
            height: auto;
        }
        
        .type-edit-form button {
            font-size: 11px;
            padding: 4px 8px;
            margin-top: 5px;
        }
        
        .btn-edit-type {
            background: #6c757d;
            border: none;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            margin-right: 5px;
            cursor: pointer;
        }
        
        .btn-edit-type:hover {
            background: #5a6268;
        }       
/*----------------------------------------------------الشواهد-------------------------------------------------------*/

        .evidence-card, .elements-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            border: 1px solid #eaeaea;
        }
        .evidence-item {
            border: 1px solid #e8e8e8;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            background:#E8E8E8;
            transition: all 0.3s ease;
            position: relative;
        }
        .teacher-infothree {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
            position: relative;
        }
        .teacher-type-badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            
            margin-right: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
 
        .points-display {
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
            padding: 8px 15px;
            border-radius: 20px;
            
            border: 1px solid #ced4da;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .percentage-ok { color: #28a745;  }
        .percentage-warning { color: #dc3545;  }
        .element-item {
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            background: white;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        }
        .nav-tabs .nav-link.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px 10px 0 0;
            
        }
        .nav-tabs .nav-link {
            color: #495057;
            font-weight: 500;
            border-radius: 10px 10px 0 0;
            transition: all 0.3s ease;
        }
        .nav-tabs .nav-link:hover {
            background: #40B1A0;
            border-color: #e9ecef;
        }
        .db-warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        .user-type-help {
            font-size: 0.85em;
            color: #6c757d;
            margin-top: 8px;
            padding: 8px;
            background: #f8f9fa;
            border-radius: 8px;
            border-right: 3px solid #007bff;
        }
        .text-primary {
       bs-text-opacity: 1;
        color:#FF0000 !important;
}

/* تخصيص ألوان البطاقات */
        .stat-label {
            font-size:1.2em;
            opacity: 0.9;
            font-weight: 500;
            color:#C08A30;
        }
        .stat-labeltow {
            font-size:1.2em;
            opacity: 0.9;
            font-weight: 500;
            color:#666666;
        }
        .evidence-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
 

.evidence-actions {
    text-align: left;
    margin-bottom: 10px;
}

.evidence-actions .btn-deletetow{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: #B5202F;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 120px;
}
    
        .compact-view {
            max-width: 100%;
        }
        .evidence-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .meta-item {
            background: #f8f9fa;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 12px;
            border: 1px solid #e9ecef;
        }
        .evidence-content {
            margin-top: 15px;
        }
        .btn-delete {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            border: none;
            border-radius: 8px;
            padding: 6px 12px;
            color: white;
            transition: all 0.3s ease;
        }
        .btn-delete:hover {
            background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
        }
        .btn-evaluate {
            background: linear-gradient(135deg, #28a745 0%, #218838 100%);
            border: none;
            border-radius: 8px;
            padding: 8px 15px;
            color: white;
            transition: all 0.3s ease;
        }
        .btn-evaluate:hover {
            background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
        }
        .form-control {
            border-radius: 8px;
            border: 1px solid #ced4da;
            transition: all 0.3s ease;
        }
        .form-control:focus {
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
            border-color: #667eea;
        }
 
 /*---------------------------------------------------------------الصفحة المنبثقة الشواهد----------------------------------------------------------------*/

    .evaluation-card {
    	font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
        background: #fff;
        border-radius: 20px;
        padding:10px;
        margin-bottom: 30px;
        box-shadow: 0 6px 25px rgba(0,0,0,0.08);
        transition: 0.3s ease;
    }
    

    .evaluation-card:hover {
        box-shadow: 0 8px 35px rgba(0,0,0,0.12);
    }

    .teacher-info-header {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        color: #fff;
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .teacher-info-header h4 {
        margin-bottom: 8px;
        font-size: 1.5em;
    }

    .action-buttons {
        text-align: center;
        margin: 20px 0;
    }

    .btn-print, .btn-close {
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 1em;
        transition: 0.2s;
    }

    .btn-print { background: #17a2b8; color: #fff; }
    .btn-print:hover { background: #138496; }

    /*.btn-close { background: #dc3545; color: #fff; }*/
  /*  .btn-close:hover { background: #c82333; }*/

    .rating-info {
        background: #fff8e1;
        border: 1px solid #ffe58f;
        color: #856404;
        padding: 15px;
        border-radius: 8px;
        margin-top: 20px;
        line-height: 1.7;
    }

    .add-evaluation-form {
        background: #e7f3ff;
        border: 2px dashed #007bff;
        border-radius: 12px;
        padding: 10px;
        margin-top: 15px;
        margin-bottom:15px;
    }

    .add-evaluation-form h5 {
        margin-bottom: 15px;
        color: #0056b3;
    }

    select, textarea, input {
        width: 100%;
        border-radius: 6px;
        border: 1px solid #ccc;
        padding: 8px 10px;
        font-size: 0.95em;
    }

    select:focus, textarea:focus, input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 0.15rem rgba(0,123,255,.25);
    }

    .element-section {
        background: #fff;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 25px;
        border: 1px solid #dee2e6;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .element-header {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: #fff;
        padding: 18px;
        border-radius: 10px;
        margin-bottom: 18px;
    }

    .element-header h5 {
        margin: 0 0 5px;
    }

    .evidence-item {
        background: #E9E9E9;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 15px;
        border-right: 5px solid #6E61C2;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: transform 0.2s ease;
    }


    .points-display {
        background: #e9f5ff;
        padding: 8px 14px;
        border-radius: 25px;
        color: #007bff;
        
        display: inline-block;
        margin: 0 6px;
    }

    .status-badge {
        padding: 6px 14px;
        border-radius: 20px;
        
        font-size: 0.85em;
        margin-left: 6px;
    }

    .status-pending { background: #fff3cd; color: #856404; }
    .status-approved { background: #d4edda; color: #155724; }
    .status-rejected { background: #f8d7da; color: #721c24; }

    .calculation-info {
        background: #e9f7ef;
        border-left: 4px solid #28a745;
        padding: 10px;
        border-radius: 6px;
        font-size: 0.9em;
        margin: 10px 0;
        color: #155724;
    }

    .alert {
        border-radius: 10px;
        padding: 12px 18px;
        margin-bottom: 15px;
        font-weight: 500;
    }

    .alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
    .alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
    .alert-info { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }

    .text-center h4 {
        color: #6c757d;
    }
    
    
    /*---------------------------------------------------------------------------------------------------*/
    
    .bg-primaryoner{
    font-size:0.9em;
   --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}



/*--------------------------------------------------------الشواهد جديد----------------------------------------------------------------*/
    .page-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 30px 0;
        margin-bottom: 30px;
        border-radius: 0 0 20px 20px;
    }
    
    .evidence-card {
        transition: all 0.3s ease;
        border: 1px solid #e0e0e0;
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .evidence-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    /* تلوين كامل الكرت حسب الحالة */
    .evidence-card.status-pending {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        border-right: 4px solid #ffc107;
    }
    
    .evidence-card.status-approved {
        background: linear-gradient(135deg, #d1ecf1 0%, #a8e6cf 100%);
        border-right: 4px solid #28a745;
    }
    
    .evidence-card.status-rejected {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        border-right: 10px solid #dc3545;
    }
    
    .evidence-header {
        cursor: pointer;
        padding: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .evidence-details {
        display: none;
        padding: 20px;
    }
    
    .evidence-details.show {
        display: block;
		background:white;
		border-radius: 10px;
    }

.badge-info{
        color: black;
}   
    .compact-info {
        font-size: 0.9em;
    }
    
    .status-tab {
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px 12px;
        color: white;
        font-size: 0.8em;
        
        border-radius: 0 0 8px 0;
    }
    .status-tab2 {
        position: absolute;
        top: 0;
        right: 0;
        padding: 5px 12px;
        color: white;
        font-size: 0.8em;
        
        border-radius: 0 8px 0px 8px;
		        background: #ffc107;
    }
  
    .status-tab.pending {
        background: #ffc107;
    }
    
    .status-tab.approved {
        background: #28a745;
    }

    
    .status-tab.rejected {
        background: #dc3545;
    }

    
    .rating-display {
        background: rgba(255,255,255,0.9);
        padding: 3px 8px;
        border-radius: 15px;
        
        font-size: 0.8em;
        margin-left: 10px;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .points-display {
        background: #007bff;
        color: white;
        padding: 3px 8px;
        border-radius: 15px;
        
        font-size: 0.8em;
        margin-left: 5px;
    }
    
    .percentage-display {
        background: #28a745;
        color: white;
        padding: 3px 8px;
        border-radius: 15px;
        
        font-size: 0.8em;
        margin-left: 5px;
    }
    
    .pagination {
        justify-content: center;
        margin-top: 30px;
    }
    
    .page-info {
        text-align: center;
        margin: 10px 0;
        color: #6c757d;
        font-size: 0.9em;
    }
    
    .evaluation-summary {
        background:#dddddd42;
        padding: 10px 15px;
        border-radius: 8px;
        margin-bottom: 15px;
        border-right: 3px solid #007bff;
    }
    
    .file-preview {
        max-width: 100%;
        max-height: 200px;
        border-radius: 5px;
        margin-top: 5px;
    }
    
    .page-info {
        text-align: center;
        margin: 10px 0;
        color: #6c757d;
        font-size: 0.9em;
    }
    
    .info-badges {
        margin-left: auto; /* نقل الأيقونات إلى أقصى اليسار */
        margin-right: 15px;
    }
    
    .date-info {
        min-width: 120px;
        text-align: left; 
        font-size:0.9em;

    }
    .mb-1 {

    }
    
    .d-flex{
	        background:#FFFFFF;
        padding: 10px 15px;
        border-radius: 10px;
        margin-top:20px;

}

.align-items-center{
	        background:#FFFFFF;
        padding: 10px 15px;
        border-radius: 10px;
        font-size:1.1em;
	
}
.text-muted2{
        font-size:1.1em;
	
}

/*--------------------------------------------------------احصائية الشواهد----------------------------------------------------------------*/

/* ------------------------------------------------------------------------- */
/* القواعد الأساسية للمكونات - تظل كما هي على الكمبيوتر */
/* ------------------------------------------------------------------------- */

    .evidence-countsho{
            display: inline-block;
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            margin-right: 5px;
            color: #333;
        }


.compact-chart-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.chart-header h6 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.total-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.compact-bars-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 25px;
}

.row-info {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 120px;
    flex-shrink: 0;
}

.row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.row-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.row-count {
    font-size: 0.75em;
    color: #6c757d;
    font-weight: 600;
    background: #F0F2F4;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 20px;
    text-align: center;
}

.row-bar-container {
    flex: 1;
    height: 16px;
    background: #F0F2F4;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.row-bar {
    height: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    min-width: 40px;
    position: relative;
}

.row-bar:hover {
    transform: scaleY(1.1);
}

.row-percent {
    color: white;
    
    font-size: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ------------------------------------------------------------------------- */
/* شبكة الإحصائيات */
/* ------------------------------------------------------------------------- */

.stats-gridshwh {
    font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 25px;
}

.stat-cardshwahed {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-cardshwahed:hover {
    transform: translateY(-5px);
}

.stat-numbershw {
    font-size: 2.5rem;
    
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ------------------------------------------------------------------------- */
/* معلومات العناصر */
/* ------------------------------------------------------------------------- */

.elements-info {
    background: #e7f3ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
}

.elements-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.element-stat {
    background: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.elements-list {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

/* ------------------------------------------------------------------------- */
/* بطاقة المعلم */
/* ------------------------------------------------------------------------- */

.teacher-cardshwah {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 8px solid var(--primary-color);
    outline: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.teacher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.teacher-name {
    
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.teacher-id {
    color: #6c757d;
    font-size: 0.85rem;
}

.teacher-type {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ------------------------------------------------------------------------- */
/* قسم التقدم */
/* ------------------------------------------------------------------------- */

.progress-section {
    margin: 15px 0;
}

.progress-labelshwahd {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-barshwa {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fillshwa {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* ------------------------------------------------------------------------- */
/* حالات الإكمال */
/* ------------------------------------------------------------------------- */

.completion-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-almost-complete {
    background: #fff3cd;
    color: #856404;
}

.status-half-complete {
    background: #cce7ff;
    color: #004085;
}

.status-incomplete {
    background: #f8d7da;
    color: #721c24;
}

/* ------------------------------------------------------------------------- */
/* إحصائيات الأدلة */
/* ------------------------------------------------------------------------- */

.evidence-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    gap: 10px;
}

.evidence-stat {
    text-align: center;
    flex: 1;
}

.evidence-count {
    
    font-size: 1.2rem;
}

.evidence-label {
    color: #6c757d;
    font-size: 0.75rem;
}

/* ------------------------------------------------------------------------- */
/* المخططات والتخطيطات الأخرى */
/* ------------------------------------------------------------------------- */

.completion-chart {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container {
    display: flex;
    align-items: flex-end;
    height: 200px;
    margin-top: 20px;
    gap: 10px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 0.5s ease;
}

.chart-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
}

.search-box {
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 20px;
    font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;     
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 5px 15px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}
/* ------------------------------------------------------------------------- */
/* تحسينات للجوال فقط - بدون تأثير على الكمبيوتر */
/* ------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* تحسينات الحاوية المدمجة للرسم البياني */
    .compact-chart-container {
        padding: 12px;
        width: 100%;
    }
    
    .chart-header h6 {
        font-size: 0.9rem;
    }
    
    .total-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    /* تحسين الصفوف في الرسم البياني الأفقي */
    .compact-row {
        height: auto;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .row-info {
        width: 100%;
        justify-content: flex-start;
        gap: 5px;
        margin-bottom: 4px;
    }
    
    .row-label {
        font-size: 0.75rem;
    }
    
    .row-count {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .row-bar-container {
        width: 100%;
        height: 16px;
        margin-top: 4px;
    }
    
    .row-bar {
        padding: 0 6px;
        min-width: 35px;
    }
    
    .row-percent {
        font-size: 0.7rem;
    }
    
    /* تحسينات شبكة الإحصائيات - عنصرين في الصف */
    .stats-gridshwh {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .stat-cardshwahed {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        min-height: 120px;
    }
    
    .stat-numbershw {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
        text-align: center;
    }
    
    /* تحسينات بطاقة المعلم - تنسيق أجمل */
    .teacher-cardshwah {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        border-left-width: 6px;
        gap: 12px;
    }
    
    .teacher-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .teacher-name {
        font-size: 1.05rem;
        margin-bottom: 4px;
        color: #2c3e50;
        flex: 1;
        min-width: 60%;
    }
    
    .teacher-id {
        font-size: 0.8rem;
        color: #6c757d;
        order: 3;
        width: 100%;
        margin-top: 4px;
    }
    
    .teacher-type {
        align-self: flex-start;
        margin-top: 0;
        padding: 4px 10px;
        font-size: 0.75rem;
        background: linear-gradient(135deg, #f0f2f4, #e4e7eb);
        border: 1px solid #dee2e6;
        order: 2;
    }
    
    /* قسم المعلومات الرئيسية في بطاقة المعلم */
    .teacher-main-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }
    
    /* تحسينات قسم التقدم */
    .progress-section {
        margin: 12px 0;
        width: 100%;
    }
    
    .progress-labelshwahd {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 0.85rem;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .completion-status {
        align-self: center;
        font-size: 0.75rem;
        padding: 4px 10px;
        margin-top: 0;
        border-radius: 12px;
    }
    
    .progress-barshwa {
        height: 10px;
        width: 100%;
        background: #f0f2f4;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .progress-fillshwa {
        height: 100%;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    
    /* تحسينات إحصائيات الأدلة */
    .evidence-stats {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        background: #f8f9fa;
        padding: 12px;
        border-radius: 10px;
        margin-top: 12px;
    }
    
    .evidence-stat {
        margin-bottom: 0;
        padding: 8px 4px;
    }
    
    .evidence-count {
        font-size: 1.3rem;
        color: #2c3e50;
        margin-bottom: 4px;
    }
    
    .evidence-label {
        font-size: 0.7rem;
        color: #6c757d;
        line-height: 1.2;
    }
    
    /* تحسينات إحصائيات العناصر */
    .elements-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .element-stat {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    /* تحسينات أزرار التصفية */
    .filter-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

/* ------------------------------------------------------------------------- */
/* تحسينات إضافية للجوالات الصغيرة جداً */
/* ------------------------------------------------------------------------- */

@media (max-width: 480px) {
    /* تحسينات شبكة الإحصائيات للشاشات الصغيرة */
    .stats-gridshwh {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .stat-cardshwahed {
        min-height: 110px;
        padding: 14px;
    }
    
    .stat-numbershw {
        font-size: 1.7rem;
    }
    
    .stat-label {
        font-size: 0.78rem;
    }
    
    /* تحسينات إضافية للصفوف المدمجة */
    .compact-row {
        gap: 4px;
    }
    
    .row-info {
        gap: 4px;
    }
    
    .row-label {
        font-size: 0.7rem;
    }
    
    .row-count {
        font-size: 0.6rem;
        padding: 0 3px;
    }
    
    .row-bar {
        padding: 0 4px;
        min-width: 30px;
    }
    
    .row-percent {
        font-size: 0.65rem;
    }
    
    .row-bar-container {
        height: 14px;
    }
    
    /* تحسينات إضافية لبطاقة المعلم للشاشات الصغيرة */
    .teacher-cardshwah {
        padding: 14px;
    }
    
    .teacher-name {
        font-size: 1rem;
        min-width: 100%;
    }
    
    .teacher-header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .teacher-type {
        align-self: flex-start;
        order: 2;
    }
    
    .teacher-id {
        order: 3;
    }
    
    /* تحسينات إضافية لإحصائيات الأدلة */
    .evidence-stats {
        gap: 8px;
        padding: 10px;
    }
    
    .evidence-stat {
        flex: 0 0 calc(50% - 4px);
        padding: 8px 2px;
    }
    
    .evidence-count {
        font-size: 1.2rem;
    }
    
    .evidence-label {
        font-size: 0.65rem;
    }
    
    /* تحسينات إحصائيات العناصر للشاشات الصغيرة */
    .elements-stats {
        grid-template-columns: 1fr;
    }
    
    /* تحسينات أزرار التصفية للشاشات الصغيرة */
    .filter-buttons {
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* ------------------------------------------------------------------------- */
/* تحسينات للأجهزة اللوحية الصغيرة (بين الجوال والكمبيوتر) */
/* ------------------------------------------------------------------------- */

/* حل بديل أقوى */
@media screen and (max-width: 768px) {
    .stats-gridshwh {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 12px !important;
        width: 100% !important;
    }
}

@media screen and (max-width: 480px) {
    .stats-gridshwh {
    }
}



@media (min-width: 481px) and (max-width: 768px) {
    /* تحسين شبكة الإحصائيات ليكون أكثر تناسقاً */
    .stats-gridshwh {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stat-cardshwahed {
        min-height: 130px;
    }
    
    /* تحسين بطاقة المعلم للأجهزة اللوحية */
    .teacher-cardshwah {
        padding: 18px;
    }
    
    .teacher-name {
        font-size: 1.1rem;
    }
    
    /* تحسين إحصائيات الأدلة للأجهزة اللوحية */
    .evidence-stat {
    }
    
    .evidence-count {
        font-size: 1.4rem;
    }
    
    .evidence-label {
        font-size: 0.75rem;
    }
}

/*-----------------------------------------------------------تفاصيل شواهد المعلم----------------------------------------------------------------*/

.align-items-centerrosh{
    background: #F0F0F0;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 1.1em;
}


 .teacher-header-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .teacher-info-compact {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .teacher-name-id {
            flex: 1;
            min-width: 250px;
        }
        
        
        .total-score-number {
            font-size: 2.5rem;
            
            line-height: 1;
            margin-bottom: 5px;
        }
        
        .total-score-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
 /*-----------------------------------------------------------------------------------------------------------*/   
 
/* تنسيق الرأس الرئيسي */
.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.evidence-header:hover {
    background-color: #e9ecef;
}

/* الجزء الأيسر: معلومات العنصر */
.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    margin-left:10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.element-info {
    min-width: 200px;
}

.element-title {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.3;
}

.element-meta {
    color: #6c757d;
    font-size: 13px;
    display: block;
    margin-top: 2px;
}

/* الجزء الأوسط: معلومات الشاهد */
.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 20px;
}

.evidence-points {
    background-color: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    color: #495057;
}

.evidence-percentage {
    background-color: #d4edda;
    padding: 5px 10px;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
    font-weight: 500;
}

.evidence-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* الجزء الأيمن: زر الحذف */
.header-right {
    min-width: 80px;
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.2);
}

/* التفاصيل المخفية */
.evidence-details {
    display: none;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
}

/* تحسينات إضافية */
.element-description {
    color: #6c757d;
    line-height: 1.5;
}

.evidence-file .file-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    margin-top: 5px;
}

.evidence-file .file-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.evidence-description {
    line-height: 1.6;
    color: #495057;
}

.previous-notes {
    border-left: 4px solid #17a2b8;
}

.evidence-dates {
    display: block;
    margin-top: 15px;
}

.delete-form {
    margin: 0;
}

/* تجاوبية */
@media (max-width: 992px) {
    .header-center {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin: 0 15px;
    }
    
    .element-info {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .evidence-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
    }
    
    .header-center {
        margin: 10px 0;
    }
    
    .btn-delete {
        width: 100%;
        justify-content: center;
    }
	

}    

.teacher-name-id{
}
.score-details{
	background:#F2F2F2;
	padding:5px;
    border-radius:15px;
    color:#666666;

}



/* تنسيق الحاوية الرئيسية للمعلم */
.teacher-info-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* تنسيق قسم المعلومات (الاسم، الرقم، التفاصيل) */
.teacher-name-id {
    flex: 1;
}

/* تنسيق حاوية الدرجات */
.teacher-scores-container {
    display: flex;
    gap: 15px;
    min-width: 300px; /* عرض أدنى مناسب */
}

/* تنسيق صندوق الدرجة */
.total-score-box {
    flex: 1;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}
        .total-score-box {
            background: rgba(255,255,255,0.15);
            padding: 15px 25px;
            text-align: center;
        }

.total-score-number {
    font-size: 2em;
    
    color: #FFFFFF;
    margin-bottom: 5px;
}

.total-score-label {
    font-size: 1em;
    color: #E0E0E0;
}

/* تنسيق خاص للصندوق الثاني */

/* تنسيق تفاصيل النتيجة */
.score-details {
    background: #F2F2F2;
    border-radius: 10px;
    color: #666666;
    font-size: 0.9rem;
    margin-top: 10px;
    width: fit-content; /* يتناسب مع المحتوى */
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .teacher-info-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .teacher-scores-container {
        width: 100%;
        min-width: auto;
    }
}

/*-------------------------------------------------تفاصييل شواهد المعلم-----------------------------------------------------*/

       .type-badge {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 14px;
            
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
        }
        
        .element-card {
            background: linear-gradient(135deg, #A2AFF2 0%, #764ba2 100%);
            border-radius: 12px;
            padding: 0;
            margin-bottom: 20px;
            border: 0px solid #e9ecef;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }
        
        
        /* تبويب الحالة في الزاوية اليسرى */
        .status-tab {
            position: absolute;
            left: 0;
            top: 0;
            padding: 8px 15px;
            border-radius: 0 0 12px 0;
            font-size: 13px;
            
            z-index: 1000;
            border: none;
            display: flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            min-width: 120px;
            text-align: center;
        }
        
        .status-tab i {
            font-size: 14px;
        }
        
        .status-pending {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }
        
        .status-approved {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .status-rejected {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .status-not-uploaded {
            background: #FF0000;
            color: #FFFFFF;
            border: 1px solid #d6d8db;
        }
        
        .element-header {
            position: relative;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #edeeef;
            border-bottom: 2px solid #f1f3f9;
            min-height: 80px;
        }
        
        .element-header:hover {
            background: #f8f9fa;
        }
.element-content{
	margin-top:25px;
}        
        .element-title {
            font-size:1.3em;
            
            color: #333;
            margin-bottom:15px;
            text-align: right;
        }
        
        .element-description {
            color: #666;
            font-size: 14px;
            margin-bottom: 10px;

        }
        
        .element-meta {
            gap: 15px;
            justify-content: flex-end;
        }
        
        .badge-points {
            background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            margin-left:20px;
        }
        
        .badge-percentage {
            background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
        }
        
        .toggle-icon {
            font-size: 20px;
            transition: transform 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
            
        }
        
        .toggle-icon.rotated {
            transform: rotate(180deg);
        }
        
        .upload-section {
            padding: 25px;
            background: #eaeef1;
            border-top: 2px solid #e9ecef;
            display: none;
        }
        
        .upload-section.show {
            display: block;
            animation: slideDown 0.3s ease;
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .evidence-status {
            display: none;
        }
        
        .file-info {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-right: 6px solid #6E65C6;
        }
        
          .file-info h6{
          color:#009933;
        }

        
        .file-link {
            color: #4361ee;
            text-decoration: none;
            
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .file-link:hover {
            text-decoration: underline;
            color: #3a0ca3;
        }
        
        .rating-stars {
            color: #ffc107;
            font-size: 16px;
        }
        
        .no-elements {
            text-align: center;
            padding: 50px 20px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        }
        
        .no-elements-icon {
            font-size: 60px;
            color: #ddd;
            margin-bottom: 20px;
        }
        
.alert-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
}        
        .btn-upload {
            background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 25px;
            
            transition: all 0.3s ease;
        }
        
        .btn-upload:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
            color: white;
        }
        
        .btn-update {
            background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .admin-notes {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border-right: 4px solid #4cc9f0;
            margin-top: 10px;
        }
        
        /* إضافة لتصميم وصف العنصر المفصل */
        .element-description-details {
            border-radius: 8px;
            margin-bottom: 20px;
            background:#FFFFFF;
           border-right: 6px solid #6E65C6;
           padding:10px;

        }
        
        .element-description-details h6 {
            color: #009933;
            
            margin-bottom: 10px;
        }
        
        .description-content {
            border-radius: 8px;
        }
        
        .rating-badge {
            background: #ffc107;
            color: #333;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            margin-left: 5px;
        }
        
        .status-emoji {
            font-size: 14px;
        }
        
        .status-text {
            margin-right: 5px;
        }
        
        
/*--------------------------------------------تنسيقات عامة------------------------------------------*/

/* تصميم دائرة المخالفات في أقصى اليسار */
.violation-count-badge {
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 0.85em;
    flex-shrink: 0;
    margin-right: 12px;
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* ألوان الدوائر حسب عدد المخالفات */
.violation-count-badge.info-badge {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.violation-count-badge.warning-badge {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.violation-count-badge.danger-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* تأكد أن الـ ranking-item يعرض العناصر في صف */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

/* معلومات المعلم تأخذ باقي المساحة */
.teacher-details {
    flex: 1;
}

/* إذا كان هناك عناصر أخرى في اليسار، يمكنك إزالتها */
.ranking-item .rank-number {
    display: none;
}

/*--------------------------------------------------المهام-----------------------------------------------------*/

    .status-tabtask {
        position: absolute;
        top: 0;
        left: 0;
        padding: 10px 20px;
        color: #F8F9FA;
        font-size: 0.9em;
        
        border-radius: 0 0 8px 0;
        background:#7159B6;
       
    }
        
        .task-header {
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: #FFFFFF;
            border-bottom: 1px solid #dee2e6;
            transition: all 0.3s ease;
            border-radius: 30px;
        }
        
        .task-header:hover {
            background: #F2F2F2;
        }
        
        .task-header.opened {
            background: #e9ecef;
            border-bottom: 2px solid #007bff;
        }
        
        .task-title {
            font-size: 1.1rem;
            
            color: #2c3e50;
            margin: 0;
        }
        
        .task-meta {
            font-size: 0.85rem;
            color: #6c757d;
        }
        
        .teacher-list {
            display: none;
            padding: 20px;
            background: white;
        }
        
        .teacher-list.open {
            display: block;
        }
        
        .teacher-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .teacher-item {
            display: flex;
            align-items: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            transition: all 0.2s ease;
        }
        
        .teacher-item:hover {
            background: #e9ecef;
        }
        
        .teacher-item.completed {
            background: linear-gradient(135deg, #d4ffd9, #e6f7e8);
            border-left: 5px solid #28a745;
        }
        
        .teacher-infotask {
            flex-grow: 1;
            margin-right: 10px;
            font-size: 0.95em;			
        }
        
        .teacher-name {
            font-weight: 500;
            color: #2c3e50;
            font-size: 0.95rem;
        }
        
        .teacher-id {
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        .completion-timetask {
            font-size: 0.9em;
            color: #28a745;
            margin-top: 7px;
        }
        
        .teacher-checkbox {
            transform: scale(1.2);
            cursor: pointer;
        }
        
        .completion-count {
            display: inline-block;
            padding: 6px 15px;
            background: #e3f2fd;
            border-radius: 10px;
            font-size: 0.85rem;
            color: #1976d2;
            font-weight: 500;
        }
        
        .add-task-form {
            background:#f8f9fa;
            padding: 25px;
            border-radius: 10px;
            margin-bottom: 30px;
			border-right: 10px solid #6E61C2;
			border-left: 10px solid #6E61C2;
        }
        
        .edit-task-form {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-top: 10px;
            display: none;
        }
        
        .edit-task-form.open {
            display: block;
        }
        
        .no-tasks {
            text-align: center;
            padding: 50px 20px;
            color: #6c757d;
        }
        
        .header-left {
            display: flex;
            align-items: center;
        }
        
        .header-icon {
            transition: transform 0.3s ease;
        }
        
        .task-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .btn-task-edit {
            background: #17a2b8;
            color: white;
            border: none;
            padding: 5px 12px;
            border-radius: 5px;
            font-size: 0.85rem;
            cursor: pointer;
        }
        
        .btn-task-edit:hover {
            background: #138496;
        }
        
        .task-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .page-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 20px;
            border-radius: 10px;
            margin-bottom: 30px;
        }
        
        .page-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .page-header .lead {
            font-size: 1.2rem;
            opacity: 0.9;
        }
        
        
        .save-button-container {
            text-align: left;
            padding: 15px 0;
            border-top: 1px solid #dee2e6;
            margin-top: 15px;
        }
        
        .select-all-container {
            margin-bottom: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 5px;
        }
        
        .teacher-item.highlighted {
            background: linear-gradient(135deg, #fff3cd, #ffeaa7);
            border-color: #ffc107;
            animation: highlightPulse 1s ease;
        }
        
        @keyframes highlightPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }
        
        .quick-search-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .btn-search-action {
            padding: 5px 10px;
            font-size: 0.8rem;
            border-radius: 4px;
            border: 1px solid #dee2e6;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-search-action:hover {
            background: #f8f9fa;
        }
        
        @media (max-width: 768px) {
            .page-header h1 {
                font-size: 1.8rem;
            }
            
            .page-header .lead {
                font-size: 1rem;
            }
            
            .task-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .task-actions {
                margin-top: 10px;
                width: 100%;
                justify-content: flex-end;
            }
            
            .teacher-grid {
                grid-template-columns: 1fr;
            }
            
            .quick-search-actions {
                flex-direction: column;
            }
        }
		
		/* في قسم الـ CSS */
.btn-task-status {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    margin-left: 5px;
}

.btn-task-status.active {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.btn-task-status.inactive {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.btn-task-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* تنسيق حالة المهمة في العرض */
.task-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.task-status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.task-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* تحديث task-meta */
.task-meta {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

/*---------------------------طباعة المهمة---------------------------------*/
    /* معلومات المهمة */
    .task-infotask {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 30px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 8px;
		font-size:0.8em;
    }
    
    .info-itemtask {
        background: white;
        padding: 15px;
        border-radius:10px;
    border-left: 4px solid #FF0066;
    border-right: 4px solid #FF0066;
		font-size:1.1em;		
    }
    
    .info-itemtask strong {
        color: #495057;
        display: block;
        margin-bottom: 5px;
    }
    
        
    .section-title {
        padding:10px;
        border-radius: 8px 8px 0 0;
        margin: 0px;
    }
    .section-title  h1{
        color: white;
        font-size: 1em;

    }
    
    .badge-warning {
    background-color: #ffc107;
    }
    
/*---------------------------------------------------جدول المعلمين---------------------------------------*/   

    .badge-warning65844 {
    background-color: #7456AC;
    }

 /*--------------------------------------------التطوير----------------------------------------------------*/
     .header-section{
	font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;
	margin-bottom: 20px;
}
     .header-section h1{
	color:#D1A863;
	font-weight: 100 !important;
}
        .activity-card {
            font-family: NeoSansArabic, tahoma, Arial, Verdana, sans-serif;
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            border: 1px solid #e9ecef;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .activity-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        
        .activity-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }
        
        .activity-count {
            background: #f8f9fa;
            border-radius: 50px;
            padding: 5px 15px;
            
            color: #495057;
        }
        
        .activity-list {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        .activity-item {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            border-right: 4px solid #007bff;
        }
        
        .activity-item-training {
            border-right-color: #28a745;
        }
        
        .activity-item-visit {
            border-right-color: #ffc107;
        }
        
        .activity-item-workshop {
            border-right-color: #17a2b8;
        }
        
        .activity-item-applied {
            border-right-color: #dc3545;
        }

        
        .delete-btn {
            color: #dc3545;
            background: none;
            border: none;
            padding: 5px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .delete-btn:hover {
            color: #bd2130;
        }
        
        .date-badge {
            background: #e9ecef;
            color: #495057;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-left: 10px;
        }
        
        /* تخصيص شريط التمرير */
        .activity-list::-webkit-scrollbar {
            width: 8px;
        }
        
        .activity-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        .activity-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        
        .activity-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        
        
 /*-----------------------------------------------التطوير المهني-------------------------------------------------*/
     .header-card { background: white; border-radius: 20px; padding: 30px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-right: 8px solid <?php echo $current_info['color']; ?>; }
    .card.border-0.shadow-sm { border-radius: 20px !important; overflow: hidden; }
    .teacher-name { color: var(--main-purple); font-weight: 700; }
    .badge-custom { background: #f0ebf7; color: var(--main-purple); padding: 5px 12px; border-radius: 8px; font-size: 0.85rem; display: inline-block; margin: 2px; }
    .print-only { display: none; }
    .header-section{margin:15px; color: #EC4242;}
    .table thead th {background-color: #725FB9 !important;color: #ffffff;}
    
    /* شارة الساعات */
    .hours-tag { background: #e3f2fd; color: #0d47a1;  border: 1px solid #bbdefb; }

@media print {
    @page { size: A4; margin: 0.5cm !important; }
    html, body { width: 100% !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
    .container { width: 100% !important; max-width: 100% !important; min-width: 100% !important; margin: 0 auto !important; padding: 0 !important; }
    .card { border-radius: 0px !important; border: none !important; box-shadow: none !important; margin: 0 !important; }
    .table-responsive { border: none !important; overflow: visible !important; width: 100% !important; }
    .table { width: 100% !important; border-collapse: collapse !important; margin: 0 auto !important; table-layout: auto !important; border: 1px solid #000 !important; }
    .table thead th { background-color: #f2f2f2 !important; color: #000 !important; height: 40px !important; font-size: 12pt !important; border: 1px solid #000 !important; text-align: center !important; vertical-align: middle !important; -webkit-print-color-adjust: exact; }
    .table tbody td { padding: 1px 4px !important; line-height: 2 !important; height: 1px !important; font-size: 9pt !important; border: 1px solid #000 !important; vertical-align: middle !important; overflow: hidden; }
    .teacher-name { margin: 0 !important; padding: 0 !important; font-size: 9pt !important; color: #000 !important; }
    .badge-custom { font-size: 10pt !important; padding: 0px 4px !important; border-radius: 10px !important; display: inline-block; margin: 1px !important; background: #f0ebf7 !important; }
    .no-print, .btn, .btn-back, footer, .navbar { display: none !important; }
    .print-only { display: block !important; }
    .card.border-0.shadow-sm{border-radius: 0px !important;}
    .print-header{border-right: 10px solid #764D9F;}
	.badge-custom, .hours-tag {background: none !important;color: #000 !important;border: none !important;padding: 0 !important;margin: 0 5px !important;border-radius: 0 !important;display: inline !important;}
	.badge-custom:not(:last-child):after {content: " | ";color: #000;}
}

        .header-section h1 { color: #2d4373; }
        .header-section p { color: #666; font-size: 1.1rem; }
        
        .category-card {
            border: none; border-radius: 25px; transition: all 0.3s ease;
            background: #fff; cursor: pointer; position: relative; overflow: hidden;
            padding: 30px !important; box-shadow: 0 10px 25px rgba(0,0,0,0.03);
        }
        .category-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
        
        .icon-box { 
            width: 70px; height: 70px; border-radius: 20px; 
            display: flex; align-items: center; justify-content: center; font-size: 2rem;
            margin-bottom: 25px; transition: 0.3s;
        }
        .category-card:hover .icon-box { transform: scale(1.1); }
        
        .count-badge {
            position: absolute; top: 25px; left: 25px;
            background: var(--light-purple); color: var(--admin-purple); 
            padding: 6px 18px; border-radius: 12px; font-weight: 800; font-size: 0.9rem;
        }

        .card-title { color: #2d4373; font-weight: 600 !important; margin-bottom: 10px; }
        .btn-view {
            background: #EBEEF1; color: #555; border: none; padding: 8px 20px;
            border-radius: 12px;  font-size: 0.85rem; transition: 0.3s;
        }
        .category-card:hover .btn-view { background: var(--admin-purple); color: #fff; }

        .btn-add-activity {
            background: linear-gradient(135deg, #764D9F 0%, #5a3a7a 100%);
            color: white; border: none; border-radius: 15px; padding: 12px 25px;
            box-shadow: 0 8px 20px rgba(118, 77, 159, 0.2); transition: 0.3s;
        }
        .btn-add-activity:hover { transform: translateY(-2px); color: white; filter: brightness(1.1); }
 