/* الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* تنسيقات عامة */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: #f8f9fc;
    user-select: none;
    -webkit-user-select: none;
}

/* تنسيقات البطاقات */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.35rem;
    font-weight: 600;
}

/* تنسيقات الأزرار */
.btn-action {
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset-all {
    background-color: #f6c23e;
    color: #212529;
}

.btn-reset-all:hover {
    background-color: #e0b135;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(246, 194, 62, 0.3);
}

.btn-delete-all {
    background-color: #e74a3b;
    color: white;
}

.btn-delete-all:hover {
    background-color: #d03526;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 74, 59, 0.3);
}

.btn-reset-students {
    background-color: #36b9cc;
    color: white;
}

.btn-reset-students:hover {
    background-color: #2a9eb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(54, 185, 204, 0.3);
}

/* تنسيقات مربع البحث */
.search-box {
    width: 300px;
}

.search-input {
    border-radius: 8px 0 0 8px !important;
    border: 1px solid #d1d3e2;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #4e73df;
    box-shadow: none;
}

.btn-search {
    border-radius: 0 8px 8px 0;
    background-color: #4e73df;
    color: white;
    border: none;
    transition: all 0.3s;
}

.btn-search:hover {
    background-color: #3a5ec0;
}

/* تأثيرات عامة */
.gap-2 {
    gap: 0.5rem;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .search-box {
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-action {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* تنسيقات الجداول */
.table {
    margin-bottom: 0;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e3e6f0;
    background-color: #f8f9fc;
    font-weight: 600;
    text-align: right;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* تنسيقات شريط التقدم */
.progress {
    height: 1rem;
    border-radius: 0.35rem;
    background-color: #eaecf4;
}

.progress-bar {
    border-radius: 0.35rem;
}

/* تنسيقات التنبيهات */
.alert {
    border-radius: 0.35rem;
    padding: 1rem;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* تنسيقات الصور */
.img-thumbnail {
    border-radius: 0.35rem;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #e3e6f0;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* تنسيقات النصوص */
.text-success {
    color: #1cc88a !important;
}

.text-danger {
    color: #e74a3b !important;
}

/* تنسيقات خاصة بالنتائج */
.highlight-row {
    position: relative;
    background-color: #e7f5ff !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* التكيف مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-content {
        margin-right: 0;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    
    .sidebar-item {
        width: 50%;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-link {
        justify-content: center;
        margin: 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}