/* أساسيات التصميم */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
	  zoom: 0.9; /* 90% */

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* التصميم العام */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* تصميم الصفحة الرئيسية */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* تصميم الأزرار */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: white;
	font-family: 'Tajawal', sans-serif;

}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2980b9;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #3498db;
}

/* تصميم قسم المميزات */
.features-section {
    padding: 4rem 0;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* تصميم لوحة التحكم */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 150px);
}

.dashboard-sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
}

.dashboard-user {
    text-align: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.dashboard-user img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
}

.dashboard-nav a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background-color: #3498db;
}

.dashboard-nav a i {
    margin-left: 0.5rem;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    background-color: #f5f5f5;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.points-progress {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.points {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.progress-bar {
    position: relative;
    width: 200px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #79a384;
    border-radius: 10px;
    transition: width 0.5s;
}

.progress-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: #333;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.lessons {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.stat-icon.tasks {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.stat-icon.points {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.stat-icon.rank {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f1f1;
    color: #2c3e50;
}

.lessons-list,
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-item,
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
}

.lesson-info h3,
.task-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.lesson-info p,
.task-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* تصميم صفحات المصادقة */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
}


.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
}



.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
}

.alert {
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert.error {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.alert.success {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid #2ecc71;
}

/* تصميم التذييل */
footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* أنماط إضافية للوحات التحكم */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.teacher-stats,
.admin-stats {
    display: flex;
    gap: 1.5rem;
}

.teacher-stats span,
.admin-stats span {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* أنماط الجداول */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #f1f1f1;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* أنماط البادجات */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-badge.inactive {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

/* أنماط الأزرار الصغيرة */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* أنماط بطاقات الدروس والمهام */
.lessons-grid,
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.lesson-card,
.task-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.lesson-card:hover,
.task-card:hover {
    transform: translateY(-5px);
}

.lesson-image {
    height: 150px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.task-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.task-score {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lesson-info,
.task-body {
    padding: 1.5rem;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.task-status {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.submitted {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status.not-submitted {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.score {
    background: rgba(241, 196, 15, 0.2);
    color: #f39c12;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lesson-actions,
.task-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* أنماط عرض الدرس/المهمة */
.lesson-view,
.task-view {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lesson-header,
.task-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f1f1;
}

.task-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lesson-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.lesson-content p {
    margin-bottom: 1rem;
}

.lesson-actions {
    display: flex;
    gap: 1rem;
}

/* أنماط التعليقات */
.task-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-like {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.btn-like:hover {
    background: #e9ecef;
}

.btn-like.liked {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-color: #e74c3c;
}

.comment-form {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.comment-form.hidden {
    display: none;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: vertical;
    min-height: 100px;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 1rem;
}

.task-comments {
    margin: 2rem 0;
}

.comment {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.comment-header strong {
    color: #2c3e50;
}

.comment-header span {
    color: #6c757d;
    font-size: 0.8rem;
}

.task-submission {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f1f1;
}

.submission-status {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.submission-status p {
    margin-bottom: 0.5rem;
}

.submission-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

/* أنماط قوائم المستخدمين */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.user-info p {
    margin-bottom: 0.3rem;
    color: #6c757d;
}

.user-role {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-role.admin {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.user-role.teacher {
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.user-role.student {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* أنماط الإحصائيات السريعة */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.quick-stat i {
    font-size: 1.5rem;
    color: #3498db;
}

.stat-details h3 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.stat-details p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    margin: 0;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .teacher-stats,
    .admin-stats {
        flex-wrap: wrap;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .lessons-grid,
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .user-item {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
}
/* أنماط إضافية للنظام */

/* تبويبات */
.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.tab-link {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
  font-family: 'Tajawal', sans-serif;

}

.tab-link:hover {
    color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* بطاقات الإنجازات */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.achievement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card.earned {
    border-left: 4px solid #2ecc71;
}

.achievement-card.locked {
    border-left: 4px solid #95a5a6;
    opacity: 0.7;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.achievement-card.earned .achievement-icon {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.achievement-card.locked .achievement-icon {
    background: rgba(149, 165, 166, 0.2);
    color: #7f8c8d;
}

.achievement-info {
    flex: 1;
}

.achievement-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.achievement-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

 

/* لوحة المتصدرين */
.leaderboard-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.leaderboard-filters {
    display: flex;
    gap: 0.5rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.leaderboard-item:hover {
    background: #e9ecef;
}

.leaderboard-item.current-user {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498db;
}

.rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 1rem;
}

.leaderboard-item:nth-child(1) .rank {
    background: #f1c40f;
}

.leaderboard-item:nth-child(2) .rank {
    background: #95a5a6;
}

.leaderboard-item:nth-child(3) .rank {
    background: #d35400;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.student-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.student-details h3 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.student-details p {
    color: #6c757d;
    font-size: 0.9rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.badge.gold {
    background: #f1c40f;
    color: white;
}

.badge.silver {
    background: #95a5a6;
    color: white;
}

.badge.bronze {
    background: #d35400;
    color: white;
}

/* حالة فارغة */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* نموذج التقييم */
.evaluation-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.submission-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.submission-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-item label {
    font-weight: 600;
    color: #2c3e50;
}

.info-item span {
    color: #6c757d;
}

.evaluation-form {
    margin-top: 1.5rem;
}

/* قوائم التقييم */
.evaluations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evaluation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.evaluation-item:hover {
    background: #e9ecef;
}

.evaluation-item.completed {
    border-left: 4px solid #2ecc71;
}

.evaluation-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.evaluation-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.evaluation-info .score {
    color: #27ae60;
    font-weight: bold;
}

.evaluation-actions {
    display: flex;
    gap: 0.5rem;
}

/* تحميل الصور */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-upload img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.avatar-upload input[type="file"] {
    display: none;
}

/* مخطط التقدم */
.progress-chart {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.progress-chart h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.chart-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    border-radius: 10px;
    transition: width 1s;
}

.chart-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-link {
        border-bottom: 1px solid #e9ecef;
    }
    
    .leaderboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .leaderboard-filters {
        width: 100%;
        justify-content: center;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .rank {
        margin-left: 0;
    }
    
    .student-info {
        flex-direction: column;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .evaluation-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}
/* أنماط إضافية للنظام التحفيزي */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.badge-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.badge-card:hover {
    transform: translateY(-5px);
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    font-size: 1.5rem;
}

.badge-info {
    flex: 1;
}

.badge-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.badge-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.badge-meta {
    display: flex;
    gap: 0.5rem;
}

.badge-type {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-type.individual {
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.badge-type.collaborative {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.badge-points {
    background: rgba(241, 196, 15, 0.2);
    color: #f39c12;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-actions {
    display: flex;
    gap: 0.5rem;
}

/* أنماط التواصل */
.communications-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.conversations-list {
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-conversation-form {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.conversations {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.conversation-item:hover,
.conversation-item.active {
    background: white;
}

.conversation-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.conversation-info {
    flex: 1;
}

.conversation-info h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.conversation-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.conversation-info span {
    color: #95a5a6;
    font-size: 0.8rem;
}

.conversation-view {
    display: flex;
    flex-direction: column;
}

.conversation-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.conversation-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.messages-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 400px;
}

.message {
    display: flex;
    margin-bottom: 1rem;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    position: relative;
}

.message.sent .message-content {
    background: #3498db;
    color: white;
}

.message.received .message-content {
    background: #f1f1f1;
    color: #333;
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-input {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.message-input form {
    display: flex;
    gap: 0.5rem;
}

.message-input textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: none;
    font-family: 'Tajawal', sans-serif;
}

.empty-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #bdc3c7;
}

.empty-conversation i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-conversation h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .communications-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-list {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
}
/* أنماط إضافية للمجموعات */
.team-sections {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 1rem;
}

.team-member img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info h3 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.member-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.team-task-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.team-tasks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-task {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.task-header h3 {
    margin: 0;
    color: #2c3e50;
}

.task-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.task-discussion {
    margin-top: 1.5rem;
}

.task-discussion h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.comments-list {
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: vertical;
    min-height: 80px;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 1rem;
}

/* أنماط إدارة المجموعات */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.team-header h3 {
    margin: 0;
    color: #2c3e50;
}

.member-count {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.team-info p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.team-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* أنماط تفاصيل الفريق */
.team-view {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.team-stats {
    display: flex;
    gap: 1.5rem;
}

.team-stats span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 1rem;
}

.member-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.member-info p {
    margin-bottom: 0.3rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.add-member-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.add-member-form h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.evaluation-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.evaluation-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.evaluation-table th,
.evaluation-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.evaluation-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.evaluation-table tr:hover {
    background: #f8f9fa;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .team-sections {
        grid-template-columns: 1fr;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .team-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .evaluation-table {
        font-size: 0.8rem;
    }
    
    .evaluation-table th,
    .evaluation-table td {
        padding: 0.5rem;
    }
}
/* أنماط إضافية للتقارير والمساعدة */
.reports-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-overview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.stats-overview h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.reports-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.reports-sections .section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.reports-sections .section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* أنماط الإعدادات */
.settings-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-check label {
    margin: 0;
    font-weight: normal;
}

/* أنماط مركز المساعدة */
.help-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.help-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.help-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.faq-list, .tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item, .tutorial-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.faq-item h3, .tutorial-item h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.faq-item p, .tutorial-item p {
    color: #6c757d;
    line-height: 1.6;
}

.contact-support {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-method h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-method p {
    color: #6c757d;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .reports-sections {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .settings-section .form-row {
        flex-direction: column;
    }
}

.bonus-popup {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #00c3c4, #3C7974) !important;
    color: white !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3) !important;
}
/* أنماط إضافية للمجموعات */
.team-view {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.team-stats {
    display: flex;
    gap: 1.5rem;
}

.team-stats span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.team-card .team-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.team-card .team-header h3 {
    margin: 0;
    color: #2c3e50;
}

.member-count {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.team-members {
    margin: 1rem 0;
}

.team-members h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.team-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0.5rem;
}

.team-member .member-info {
    flex: 1;
}

.team-member .member-info h5 {
    margin: 0;
    color: #2c3e50;
}

.team-member .role {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.team-member .role.leader {
    background: rgba(241, 196, 15, 0.2);
    color: #f39c12;
}

.team-member .role.member {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.team-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* نافذة التقييم */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.evaluation-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.evaluation-table table {
    width: 100%;
    border-collapse: collapse;
}

.evaluation-table th,
.evaluation-table td {
    padding: 0.8rem;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.evaluation-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* النقاش الجماعي */
.discussion-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.discussion-messages {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.message {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0.5rem;
}

.message-info {
    flex: 1;
}

.message-info h4 {
    margin: 0;
    color: #2c3e50;
}

.message-info span {
    color: #6c757d;
    font-size: 0.8rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-like {
    color: #e74c3c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-like:hover {
    color: #c0392b;
}

.message-body {
    color: #2c3e50;
    line-height: 1.6;
}

.discussion-input {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.discussion-input textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: vertical;
    min-height: 100px;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 1rem;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .teams-list {
        grid-template-columns: 1fr;
    }
    
    .team-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .team-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .discussion-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
/* أنماط المحادثة */
.communications-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 70vh;
}

.conversations-list {
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.conversation-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.tab-link {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.conversations {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.conversation-item:hover,
.conversation-item.active {
    background: white;
}

.conversation-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.conversation-info {
    flex: 1;
}

.conversation-info h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.conversation-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.conversation-view {
    display: flex;
    flex-direction: column;
}

.conversation-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.conversation-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.conversation-info h3 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.conversation-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.messages-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    background: #f1f1f1;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    position: relative;
}

.message.sent .message-content {
    background: #3498db;
    color: white;
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-input {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.message-input form {
    display: flex;
    gap: 0.5rem;
}

.message-input textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: none;
    font-family: 'Tajawal', sans-serif;
    min-height: 50px;
}

.empty-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bdc3c7;
}

.empty-conversation i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-conversation h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.empty-conversation p {
    color: #6c757d;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .communications-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-list {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .conversation-tabs {
        flex-direction: column;
    }
    
    .tab-link {
        border-bottom: 1px solid #e9ecef;
        border-right: none;
    }
}
/* أنماط المحادثة */
.communications-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 600px;
}

.conversations-list {
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
    overflow-y: auto;
}

.conversations-section {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.conversations-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.conversations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.conversation-item:hover,
.conversation-item.active {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conversation-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0.8rem;
}

.group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.8rem;
    font-size: 1.2rem;
}

.conversation-info {
    flex: 1;
}

.conversation-info h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.conversation-info p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

.conversation-view {
    display: flex;
    flex-direction: column;
}

.conversation-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.conversation-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.conversation-header .group-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-left: 1rem;
}

.messages-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    position: relative;
}

.message.sent .message-content {
    background: #3498db;
    color: white;
}

.message.received .message-content {
    background: #f1f1f1;
    color: #333;
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-input {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.message-input form {
    display: flex;
    gap: 0.5rem;
}

.message-input textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: none;
    font-family: 'Tajawal', sans-serif;
    min-height: 60px;
}

.empty-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bdc3c7;
}

.empty-conversation i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-conversation h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .communications-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-list {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
}
/* أنماط نظام التواصل */
.communications-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 70vh;
}

.conversations-list {
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
    overflow-y: auto;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.conversations-header h3 {
    margin: 0;
    color: #2c3e50;
}

.conversations {
    padding: 0.5rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
    margin-bottom: 0.5rem;
}

.conversation-item:hover,
.conversation-item.active {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-info h4 {
    margin: 0 0 0.3rem 0;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    color: #95a5a6;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.empty-conversations {
    text-align: center;
    padding: 2rem;
    color: #bdc3c7;
}

.empty-conversations i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.conversation-view {
    display: flex;
    flex-direction: column;
    position: relative;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.conversation-title h3 {
    margin: 0 0 0.3rem 0;
    color: #2c3e50;
}

.conversation-title p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.messages-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.received {
    align-self: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 0.5rem;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    max-width: 100%;
}

.message.sent .message-content {
    background: #3498db;
    color: white;
}

.message-sender {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.message.sent .message-sender {
    display: none;
}

.message-text {
    word-wrap: break-word;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.3rem;
    text-align: left;
}

.message.sent .message-time {
    text-align: right;
}

.message-input {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: white;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    resize: none;
    font-family: 'Tajawal', sans-serif;
    min-height: 60px;
    max-height: 120px;
}

.input-group button {
    align-self: flex-end;
}

.participants-sidebar {
    position: absolute;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    border-left: 1px solid #e9ecef;
    transition: right 0.3s;
    z-index: 100;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.participants-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h4 {
    margin: 0;
    color: #2c3e50;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.participants-list {
    padding: 1rem;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.participant-info {
    flex: 1;
}

.participant-info h5 {
    margin: 0 0 0.2rem 0;
    color: #2c3e50;
}

.participant-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.8rem;
}

.no-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bdc3c7;
    text-align: center;
    padding: 2rem;
}

.no-conversation i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-conversation h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* نافذة الإنشاء */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 1.5rem;
}

.participants-select {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 0.5rem;
}

.participant-checkbox {
    margin-bottom: 0.5rem;
}

.participant-checkbox label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.participant-checkbox label:hover {
    background: #f8f9fa;
}

.participant-checkbox img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 0.5rem;
}

.participant-checkbox span {
    flex: 1;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .communications-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-list {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .participants-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* أنماط تسليمات المهام الجماعية */
.group-submissions-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.group-submissions-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submission-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.submission-header h3 {
    margin: 0;
    color: #2c3e50;
}

.submission-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.submission-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail strong {
    min-width: 100px;
    color: #2c3e50;
}

.detail span, .detail p {
    margin: 0;
    color: #6c757d;
}

.score {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}

.status.not-evaluated {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.submission-actions {
    display: flex;
    gap: 0.5rem;
}

/* نافذة التقييم */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* أنماط الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .submission-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .detail {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .detail strong {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}