* {
    /*direction: rtl;*/
    /*text-align: right;*/
}
.container {
    width: auto;
}
.logo-image {
    background: url('/lib/LogoImage.jpeg') no-repeat center center;
    background-size: contain;
    width: 100px;
    height: 50px;
}
    .container form {
        min-width: 600px;
        padding: 25px;
        background: white;
        border-radius: 4px;
        box-shadow: 0 8px 16px rgb(0,0,0,.3);
    }

        .container form h1 {
            text-align: center;
            margin-bottom: 34px;
            color: #222;
        }

        .container form .form-control {
            width: 100%;
            height: 50px;
            background: white;
            border-radius: 4px;
            border: 2px solid black;
            margin: 10px 0 18px 0;
            padding: 0 10px;
            font-size: 16px;
        }

        .container form .btn {
            margin-left: 50%;
            transform: translateX(-50%);
            width: 170px;
            height: 34px;
            border: none;
            outline: none;
            background: #27a327;
            cursor: pointer;
            font-size: 18px;
            text-align: center;
            text-transform: uppercase;
            color: white;
            border-radius: 4px;
        }

            .container form .btn:hover {
                opacity: .7;
            }

/* عرض أخطاء التحقق */
.text-danger {
    color: red;
    font-size: 14px;
    margin-top: -12px;
    margin-bottom: 10px;
    text-align: right;
}

.validation-summary-errors {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}



body {
    min-height: 100vh;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}


/* القائمة الجانبية */
.mcd-menu {
    list-style: none;
    padding: 0;
    margin-top: 80px;
    margin-right: 20px;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    width: 280px;
    height: auto;
    position: fixed;
    right: 5px;
    top: 60px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

    .mcd-menu li {
        position: relative;
        background-color: white;
    }

        .mcd-menu li a {
            display: flex;
            align-items: center;
            text-decoration: none;
            padding: 14px 25px;
            color: #2c3e50;
            text-align: right;
            height: auto;
            position: relative;
            border-bottom: none;
            transition: all 0.3s ease;
            border-right: 4px solid transparent;
            font-size: 18px;
        }

            .mcd-menu li a i {
                font-size: 24px;
                width: 30px;
                padding: 5px;
                margin: 0 0 0 25px;
                text-align: center;
                color: #e67e22;
            }

            .mcd-menu li a p {
                margin: 0;
                flex-grow: 1;
            }

            .mcd-menu li a strong {
                display: block;
                text-transform: uppercase;
                font-size: 16px;
                font-weight: 600;
                z-index:5000;
            }

            .mcd-menu li a small {
                display: block;
                font-size: 12px;
                opacity: 0.8;
            }

            .mcd-menu li a i,
            .mcd-menu li a strong,
            .mcd-menu li a small {
                position: relative;
                transition: all 300ms linear;
                z-index: 5000;
            }

        .mcd-menu li:hover > a i {
            opacity: 1;
            -webkit-animation: moveFromTop 300ms ease-in-out;
            -moz-animation: moveFromTop 300ms ease-in-out;
            -o-animation: moveFromTop 300ms ease-in-out;
            animation: moveFromTop 300ms ease-in-out;
        }

        .mcd-menu li:hover a strong {
            opacity: 1;
            -webkit-animation: moveFromLeft 300ms ease-in-out;
            -moz-animation: moveFromLeft 300ms ease-in-out;
            -o-animation: moveFromLeft 300ms ease-in-out;
            animation: moveFromLeft 300ms ease-in-out;
            z-index: 5000;
        }

        .mcd-menu li:hover a small {
            opacity: 1;
            -webkit-animation: moveFromRight 300ms ease-in-out;
            -moz-animation: moveFromRight 300ms ease-in-out;
            -o-animation: moveFromRight 300ms ease-in-out;
            animation: moveFromRight 300ms ease-in-out;
        }

        .mcd-menu li:hover > a {
            color: #e67e22;
            background: #f8f9fa;
            border-right: 4px solid #e67e22;
            z-index: 5000;
        }

        .mcd-menu li a.active {
            position: relative;
            background: transparent !important;
            border-right: 4px solid #e67e22 !important;
            border-left: 4px solid #e67e22 !important;
            color: #e67e22 !important;
            box-shadow: none !important;
            z-index: 5000;
        }

            .mcd-menu li a.active:before {
                content: "";
                position: absolute;
                top: 42%;
                right: 0;
                background: transparent !important;
                border-right: 4px solid #e67e22 !important;
                color: #e67e22 !important;
                border-top: 5px solid transparent;
                border-bottom: 5px solid transparent;
                z-index: 5000;
            }

            .mcd-menu li a.active:after {
                content: "";
                position: absolute;
                top: 42%;
                left: 0;
                background: transparent !important;
                border-left: 5px solid #e67e22 !important;
                border-top: 5px solid transparent;
                border-bottom: 5px solid transparent;
                z-index: 5000;
            }

        /* القوائم الفرعية */
        .mcd-menu li ul,
        .mcd-menu li ul li ul {
            position: absolute;
            height: auto;
            min-width: 220px;
            padding: 0;
            margin: 0;
            background: #eee;
            opacity: 0;
            visibility: hidden;
            transition: all 300ms linear;
            left: -224px;
            top: 0;
            border-right: 4px solid #333;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-radius: 0 0 0 6px;
            z-index:5000;

        }

            .mcd-menu li ul:before {
                content: "";
                position: absolute;
                top: 25px;
                right: -9px;
                border-left: 5px solid #333;
                border-bottom: 5px solid transparent;
                border-top: 5px solid transparent;
                z-index: 5000;
            }

            .mcd-menu li:hover > ul,
            .mcd-menu li ul li:hover > ul {
                display: block;
                opacity: 1;
                visibility: visible;
                left: -280px;
                z-index: 5000;
            }

            .mcd-menu li ul li a {
                padding: 12px 20px;
                text-align: right;
                border: 0;
                border-bottom: 1px solid #f1f2f6;
                height: auto;
                font-size: 16px;
                z-index: 5000;
            }

                .mcd-menu li ul li a i {
                    font-size: 18px;
                    z-index: 5000;
                }

            .mcd-menu li ul li ul {
                left: -224px;
                top: 0;
                border: 0;
                border-right: 4px solid #e67e22;
                z-index: 5000;
            }

                .mcd-menu li ul li ul:before {
                    content: "";
                    position: absolute;
                    top: 15px;
                    right: -9px;
                    border-left: 5px solid #e67e22;
                    border-bottom: 5px solid transparent;
                    border-top: 5px solid transparent;
                    z-index: 5000;
                }

            .mcd-menu li ul li:hover > ul {
                top: 0px;
                left: -224px;
                z-index: 5000;
            }

.stat-card:nth-child(1) i {
    color: #3498db;
}

.stat-card:nth-child(2) i {
    color: #27ae60;
}

.stat-card:nth-child(3) i {
    color: #e67e22;
}

.stat-card:nth-child(4) i {
    color: #9b59b6;
}

.dashboard-content {
    position: center;
    border: outset 3px #333;
    border-radius: 10px;
    min-width: 1500px;
    min-height: 800px;
    margin-top: 80px;
    z-index: 200;
}

.main-container {
    width: auto;
    min-width: 1000px;
}



.Logout-btn {
    border: none;
    background: transparent;
    color: #eee;
    font-size: 18px;
    font-weight: bold;
    height: 60px;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

    .Logout-btn:hover {
        background: rgba(255,255,255,0.5);
        border-radius: 0;
        color: #333;
    }

.welcome-message {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}


/* بطاقات الإحصائيات */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    position: center;
    border-radius: 5px;
    border: 2px solid gray;
    margin: 10px;
}

.stat-card {
    position: center;
    background: transparent;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 0px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    /* أيقونات الكرت */
    .stat-card i {
        font-size: 42px;
        color: #7f8c8d;
        margin-bottom: 15px;
    }

    /* العنوان (العدد) */
    .stat-card h3 {
        margin: 10px 0;
        color: #2c3e50;
        font-size: 28px;
        font-weight: 600;
    }

    /* الوصف */
    .stat-card p {
        color: #7f8c8d;
        font-size: 15px;
        font-weight: 500;
        margin: 0;
    }
.stats-sidebar {
    position: absolute;
    left: 0; /* تغيير right: 1750px إلى left: 0 */
    top: 80px;
    width: 190px;
    height: 100vh;
    background: #eee;
    box-shadow: 3px 0 15px transparent; /* تغيير ظل اليمين إلى ظل اليسار */
    overflow-y: auto;
    z-index: 3999;
    border: dashed;
    border-radius: 40px;
}

    .stats-sidebar h3 {
        color: #1a3a5f;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
/* أقسام لوحة التحكم */
.dashboard-section {
    background: #eee;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px #eee;
    z-index:1500;
}

    .dashboard-section h2 {
        color: #2c3e50;
        border-bottom: 2px solid #f1f2f6;
        padding-bottom: 15px;
        margin-top: 0;
        font-size: 24px;
        display: flex;
        align-items: center;
    }

        .dashboard-section h2 i {
            margin-left: 10px;
            color: #333;
        }

/* قسم أقسام النظام */
.system-sections {
    display: grid;
    height: auto;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    z-index: 1000;
    overflow-x: hidden;
    padding: 40px;
}

.system-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
    min-height: 135px;
    min-width: 40px;
}
   
    .system-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-color: #333;
    }

    .system-card i {
        font-size: 50px;
        color: #333;
    }

    .system-card span {
        font-weight: 400;
        color: #7f8c8d;
        text-align: center;
    }

/* التبليغات */
.tooltip {
    position: absolute;
    background-color: #333;
    color: #eee;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

    .tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

.system-card:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* الأنشطة الحديثة */
.recent-activities {
    list-style: none;
    padding: 0;
}

    .recent-activities li {
        padding: 15px 0;
        border-bottom: 1px solid #f1f2f6;
        display: flex;
        align-items: center;
        transition: background 0.2s;
    }

        .recent-activities li:hover {
            background: #f8f9fa;
            padding-right: 10px;
            border-radius: 5px;
        }

        .recent-activities li:last-child {
            border-bottom: none;
        }

        .recent-activities li i {
            color: #333;
            margin-left: 15px;
            font-size: 18px;
        }

/* الدورات */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.course-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border-left: 4px solid #333;
}

    .course-card:hover {
        background: #edf2f7;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .course-card h4 {
        margin: 15px 0 8px;
        color: #2c3e50;
        font-size: 18px;
    }

    .course-card p {
        color: #7f8c8d;
        font-size: 14px;
        margin: 0;
    }


/* شريط التمرير المخصص */
.system-sections-container::-webkit-scrollbar {
    width: 8px;
}

.system-sections-container::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}

.system-sections-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

    .system-sections-container::-webkit-scrollbar-thumb:hover {
        background: #333;
    }

/* الأنيميشن */
@keyframes moveFromTop {
    from {
        opacity: 0;
        transform: translateY(200%);
    }

    to {
        opacity: 1;
        transform: translateY(0%);
    }
}

@keyframes moveFromLeft {
    from {
        opacity: 0;
        transform: translateX(200%);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes moveFromRight {
    from {
        opacity: 0;
        transform: translateX(-200%);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

/* ================================================ */
/* تحسينات للاستجابة على الأجهزة المحمولة */
/* ================================================ */

/* إخفاء النافبار الجانبي والإحصائيات على الشاشات الصغيرة */
@media (max-width: 992px) {
    /* إخفاء النافبار الجانبي */
    .mcd-menu {
        transform: translateX(100%);
        width: 280px;
        right: 0;
        transition: transform 0.3s ease;
        z-index: 5000;
    }

        .mcd-menu.active {
            transform: translateX(0);
            z-index: 5000;
        }

    /* إخفاء الإحصائيات الجانبية */
    .stats-sidebar {
        display: none;
    }

    /* تعديل الهيدر ليكون مناسب للجوال */
    .header {
        height: 60px;
        padding: 0 15px;
        z-index: 4000;
    } 

    .welcome-message {
        font-size: 18px;
        display: none; /* إخفاء رسالة الترحيب على الجوال */
    }

    /* تعديل المحتوى الرئيسي */
    .dashboard-content {
        margin-right: 0;
        width: 150%;
        margin-left: 0;
        min-width: auto;
        min-height: auto;
        border: none;
        border-radius: 0;
        z-index: 1500;
    }

    .main-container {
        min-width: auto;
        width: 100%;
    }

    /* تعديل أقسام النظام */
    .system-sections {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .system-card {
        min-height: 120px;
        padding: 15px;
    }

        .system-card i {
            font-size: 40px;
        }

        .system-card span {
            font-size: 14px;
        }

    /* تعديل بطاقات الإحصائيات */
    .stats-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin: 5px;
    }

    .stat-card {
        padding: 10px 5px;
    }

        .stat-card i {
            font-size: 32px;
        }

        .stat-card h3 {
            font-size: 20px;
        }

        .stat-card p {
            font-size: 13px;
        }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 768px) {
    .header {
        height: 50px;
        padding: 0 10px;
    }
   

    .Logout-btn {
        height: 40px;
        padding: 0 10px;
        font-size: 14px;
    }


    .toggle-menu {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }

  

    .system-sections {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    .system-card {
        min-height: 100px;
        padding: 10px;
    }

        .system-card i {
            font-size: 35px;
        }

        .system-card span {
            font-size: 12px;
        }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 5px;
    }

    .stat-card {
        padding: 8px 4px;
    }

        .stat-card i {
            font-size: 28px;
        }

        .stat-card h3 {
            font-size: 18px;
        }

        .stat-card p {
            font-size: 12px;
        }

    /* تعديل الجداول للشاشات الصغيرة */
    .table-container {
        overflow-x: auto;
    }

    .students-table,
    .roles-table,
    .applications-table,
    .registration-table,
    .assignment-orders-table,
    colleges-table,
    specializations-table {
        font-size: 12px;
    }

        .students-table th,
        .students-table td,
        .roles-table th,
        .roles-table td,
        .applications-table th,
        .applications-table td,
        .registration-table th,
        .registration-table td
        .assignment-orders-table th,
        .assignment-orders-table td
        .colleges-table th,
        .colleges-table td
        .specializations-table th,
        .specializations-table td {
            padding: 8px 10px;
            font-size: 12px;
        }

    .action-buttons-table .btn {
        padding: 3px 6px;
        font-size: 10px;
    }


    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* تحسينات للشاشات الصغيرة جداً (الهواتف) */
@media (max-width: 480px) {
    .header {
        height: 45px;
    }

    .Logout-btn {
        height: 20px;
        padding: 0 8px;
        font-size: 12px;
    }


  

    .system-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .system-card {
        min-height: 90px;
        padding: 8px;
    }

        .system-card i {
            font-size: 30px;
        }

        .system-card span {
            font-size: 11px;
        }

    .stats-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section-title {
        font-size: 18px;
    }

    .dashboard-section h2 {
        font-size: 20px;
    }

    /* إخفاء بعض الأعمدة غير الضرورية في الجداول */
    .specializations-table td:nth-child(4),
    .students-table td:nth-child(4),
    .colleges-table th:nth-child(4),
    .specializations-table td:nth-child(5),
    .students-table td:nth-child(5),
    .colleges-table th:nth-child(5) {
        display: none;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 1200px) {
    .dashboard-content {
        margin-right: 300px;
        width: calc(100% - 320px);
    }

    .mcd-menu {
        width: 260px;
    }

    .stats-cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* باقي الأنماط تبقى كما هي */
.system-sections a {
    text-decoration: none;
}

/* أنماط خاصة بإدارة الطلاب */
.students-management {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.page-title {
    color: #2c3e50;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
}

    .page-title i {
        margin-left: 10px;
        color: #e67e22;
    }

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}



.search-box {
    display: flex;
    margin-bottom: 20px;
}

    .search-box input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        font-size: 16px;
    }

    .search-box button {
        background: #3498db;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }

.students-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

    .students-table th,
    .students-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .students-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

    .students-table tr:hover {
        background-color: #f5f5f5;
    }


.specializations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

    .specializations-table th,
    .specializations-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .specializations-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

    .specializations-table tr:hover {
        background-color: #f5f5f5;
    }


.colleges-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

    .colleges-table th,
    .colleges-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .colleges-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

    .colleges-table tr:hover {
        background-color: #f5f5f5;
    }

.assignment-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

    .assignment-orders-table th,
    .assignment-orders-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .assignment-orders-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

    .assignment-orders-table tr:hover {
        background-color: #f5f5f5;
    }

.roles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

    .roles-table th,
    .roles-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .roles-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

    .roles-table tr:hover {
        background-color: #f5f5f5;
    }

.action-buttons-table {
    display: flex;
    gap: 5px;
}




.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bg-success {
    background: #28a745;
}

.bg-warning {
    background: #ffc107;
    color: #000;
}

.bg-info {
    background: #17a2b8;
}

.bg-danger {
    background: #dc3545;
}

.bg-secondary {
    background: #6c757d;
}



/* أنماط خاصة بالقبول والتسجيل */
.admissions-management {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.page-title {
    color: #2c3e50;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
}

    .page-title i {
        margin-left: 10px;
        color: #e67e22;
    }

.tabs-container {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: bold;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

    .tab.active {
        color: #e67e22;
        border-bottom: 3px solid #e67e22;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}




.search-box {
    display: flex;
    margin-bottom: 20px;
}

    .search-box input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        font-size: 16px;
    }

    .search-box button {
        background: #3498db;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }

.applications-table, .registration-table, .reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .applications-table th,
    .applications-table td,
    .registration-table th,
    .registration-table td,
    .reports-table th,
    .reports-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .applications-table th,
    .registration-table th,
    .reports-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

    .applications-table tr:hover,
    .registration-table tr:hover,
    .reports-table tr:hover {
        background-color: #f5f5f5;
    }

.action-buttons-table {
    display: flex;
    gap: 5px;
}


.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.application-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

    .application-details h4 {
        margin-top: 0;
        color: #2c3e50;
    }

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    color: #7f8c8d;
}

.detail-value {
    color: #2c3e50;
}


/* جدول الرسوم */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
}

    .fees-table th,
    .fees-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .fees-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .fees-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .fees-table tr:hover {
        background-color: #f1f9ff;
    }

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-overdue {
    background-color: #f8d7da;
    color: #721c24;
}

/* أزرار الإجراءات */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}




/* نموذج البحث */
.search-box {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

    .search-box input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }

    .search-box button {
        background: #3498db;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
    }

/* شريط التبويب */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: bold;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

    .tab.active {
        color: #3498db;
        border-bottom: 3px solid #3498db;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }


/* التذييل */
.footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 30px;
    border-top: 1px solid #eee;
}


/* جدول الأرشيف */
.archive-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .archive-table th,
    .archive-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .archive-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .archive-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .archive-table tr:hover {
        background-color: #f1f9ff;
    }


/* جدول المشاريع */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .projects-table th,
    .projects-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .projects-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .projects-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .projects-table tr:hover {
        background-color: #f1f9ff;
    }

/* جدول المقررات */
.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .courses-table th,
    .courses-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .courses-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .courses-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .courses-table tr:hover {
        background-color: #f1f9ff;
    }

.departments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .departments-table th,
    .departments-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .departments-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .departments-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .departments-table tr:hover {
        background-color: #f1f9ff;
    }

.calendar-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.calendar-title {
    color: #2c3e50;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .calendar-title i {
        color: #3498db;
    }

.calendar-nav {
    display: flex;
    gap: 10px;
}

    .calendar-nav button {
        background: #3498db;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 15px;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.3s;
    }

        .calendar-nav button:hover {
            background: #2980b9;
        }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day-header {
    text-align: center;
    padding: 10px;
    background: #3498db;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    background: #f9f9f9;
    position: relative;
}

.calendar-day-number {
    position: absolute;
    top: 5px;
    left: 8px;
    font-weight: bold;
    color: #7f8c8d;
}

.calendar-event {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    margin-top: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

    .calendar-event:hover {
        background: #2980b9;
    }

    .calendar-event.exam {
        background: #e74c3c;
    }

    .calendar-event.holiday {
        background: #f39c12;
    }

    .calendar-event.registration {
        background: #27ae60;
    }

    .calendar-event.important {
        background: #9b59b6;
    }

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-exam {
    background: #e74c3c;
}

.legend-holiday {
    background: #f39c12;
}

.legend-registration {
    background: #27ae60;
}

.legend-semester {
    background: #3498db;
}

.legend-graduation {
    background: #9b59b6;
}

.events-list {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    margin-top: 20px;
}

    .events-list h3 {
        color: #2c3e50;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .events-list h3 i {
            color: #3498db;
        }

.event-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .event-item:last-child {
        border-bottom: none;
    }

.event-date {
    font-weight: bold;
    color: #2c3e50;
    min-width: 100px;
}

.event-description {
    flex-grow: 1;
    padding: 0 15px;
}

.event-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

    .event-type.exam {
        background: #e74c3c;
    }

    .event-type.holiday {
        background: #f39c12;
    }

    .event-type.registration {
        background: #27ae60;
    }

    .event-type.important {
        background: #9b59b6;
    }

.section-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: #3498db;
    }



.exams-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .exams-table th,
    .exams-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .exams-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .exams-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .exams-table tr:hover {
        background-color: #f1f9ff;
    }


.reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .reports-table th,
    .reports-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .reports-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .reports-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .reports-table tr:hover {
        background-color: #f1f9ff;
    }


.teachers-table, .courses-distribution-table, .performance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .teachers-table th, .teachers-table td,
    .courses-distribution-table th, .courses-distribution-table td,
    .performance-table th, .performance-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .teachers-table th, .courses-distribution-table th, .performance-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .teachers-table tr:nth-child(even), .courses-distribution-table tr:nth-child(even), .performance-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .teachers-table tr:hover, .courses-distribution-table tr:hover, .performance-table tr:hover {
        background-color: #f1f9ff;
    }


.courses-distribution-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .courses-distribution-table th,
    .courses-distribution-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .courses-distribution-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .courses-distribution-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .courses-distribution-table tr:hover {
        background-color: #f1f9ff;
    }




.evaluations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .evaluations-table th,
    .evaluations-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .evaluations-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .evaluations-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .evaluations-table tr:hover {
        background-color: #f1f9ff;
    }

.employees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .employees-table th,
    .employees-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .employees-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .employees-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .employees-table tr:hover {
        background-color: #f1f9ff;
    }

.contracts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .contracts-table th,
    .contracts-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .contracts-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .contracts-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .contracts-table tr:hover {
        background-color: #f1f9ff;
    }


.holidays-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .holidays-table th,
    .holidays-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .holidays-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .holidays-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .holidays-table tr:hover {
        background-color: #f1f9ff;
    }

.salaries-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .salaries-table th,
    .salaries-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .salaries-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .salaries-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .salaries-table tr:hover {
        background-color: #f1f9ff;
    }

.holidays-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .holidays-table th,
    .holidays-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .holidays-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .holidays-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .holidays-table tr:hover {
        background-color: #f1f9ff;
    }


.invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .invoices-table th,
    .invoices-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .invoices-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .invoices-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .invoices-table tr:hover {
        background-color: #f1f9ff;
    }

.expenses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .expenses-table th,
    .expenses-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .expenses-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .expenses-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .expenses-table tr:hover {
        background-color: #f1f9ff;
    }


.budget-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .budget-table th,
    .budget-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .budget-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .budget-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .budget-table tr:hover {
        background-color: #f1f9ff;
    }



.reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .reports-table th,
    .reports-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .reports-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .reports-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .reports-table tr:hover {
        background-color: #f1f9ff;
    }

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .schedule-table th,
    .schedule-table td {
        padding: 12px 15px;
        text-align: center;
        border: 1px solid #eee;
        vertical-align: middle;
    }

    .schedule-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .schedule-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .schedule-table tr:hover {
        background-color: #f1f9ff;
    }

.exam-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .exam-schedule-table th,
    .exam-schedule-table td {
        padding: 12px 15px;
        text-align: center;
        border: 1px solid #eee;
        vertical-align: middle;
    }

    .exam-schedule-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .exam-schedule-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .exam-schedule-table tr:hover {
        background-color: #f1f9ff;
    }


.admissions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .admissions-table th,
    .admissions-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .admissions-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .admissions-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .admissions-table tr:hover {
        background-color: #f1f9ff;
    }


.registration-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .registration-table th,
    .registration-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .registration-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .registration-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .registration-table tr:hover {
        background-color: #f1f9ff;
    }


.incoming-books-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .incoming-books-table th,
    .incoming-books-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .incoming-books-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .incoming-books-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .incoming-books-table tr:hover {
        background-color: #f1f9ff;
    }

.outgoing-books-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .outgoing-books-table th,
    .outgoing-books-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .outgoing-books-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .outgoing-books-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .outgoing-books-table tr:hover {
        background-color: #f1f9ff;
    }

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .users-table th,
    .users-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .users-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .users-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .users-table tr:hover {
        background-color: #f1f9ff;
    }



.permissions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .permissions-table th,
    .permissions-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .permissions-table th {
        background-color: #3498db;
        color: #2c3e50;
        font-weight: bold;
    }

    .permissions-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .permissions-table tr:hover {
        background-color: #f1f9ff;
    }


.settings-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
}


.priority-badge {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.priority-high {
    background-color: #ffc107;
    color: #856404;
}

.priority-urgent {
    background-color: #dc3545;
    color: white;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-processed {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.priority-badge {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.priority-high {
    background-color: #ffc107;
    color: #856404;
}

.priority-urgent {
    background-color: #dc3545;
    color: white;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-sent {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}


.book-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

    .book-type.incoming {
        background-color: #e3f2fd;
        color: #1565c0;
    }

    .book-type.outgoing {
        background-color: #e8f5e8;
        color: #2e7d32;
    }

    .book-type i {
        margin-left: 4px;
    }

.priority-badge {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.priority-high {
    background-color: #ffc107;
    color: #856404;
}

.priority-urgent {
    background-color: #dc3545;
    color: white;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-archived {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.advanced-search {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.search-filters {
    display: grid;
    gap: 15px;
}

/* تحسينات للإشعارات */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 20px;
    border-left: 4px solid;
    z-index: 9999;
    
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: #dc3545;
}

/* تأثير تحميل */
.loading {
    position: relative;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* أنماط CSS من صفحة التقديم */
:root {
    --primary-color: #f57c00;
    --dark-color: #121820;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
}

/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}*/

/* التصميم الرئيسي */
/*.application-dashboard {
    display: flex;
    min-height: 100vh;
}*/

/*.main-content {
    flex: 1;
    padding: 20px;
    background: var(--gray-color);
    min-height: 100vh;
}*/

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}



/* نظام البطاقات */
.system-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.system-card {
    background: #eee;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

    .system-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

    .system-card i {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 15px;
        display: block;
    }

    .system-card span {
        font-weight: 600;
        font-size: 1.1rem;
        display: block;
        margin-bottom: 2px;
    }

.tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.system-card:hover .tooltip {
    transform: translateY(0);
}

/* جدول الطلاب */
.students-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .students-table thead {
        background: var(--primary-color);
        color: white;
    }

    .students-table th {
        padding: 15px 12px;
        text-align: right;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .students-table td {
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .students-table tbody tr {
        transition: background 0.3s;
    }

        .students-table tbody tr:hover {
            background: #f8f9fa;
        }

/* جدول الطلاب */
.specializations-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .specializations-table thead {
        background: var(--primary-color);
        color: white;
    }

    .specializations-table th {
        padding: 15px 12px;
        text-align: right;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .specializations-table td {
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .specializations-table tbody tr {
        transition: background 0.3s;
    }

        .specializations-table tbody tr:hover {
            background: #f8f9fa;
        }
.colleges-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .colleges-table thead {
        background: var(--primary-color);
        color: white;
    }

    .colleges-table th {
        padding: 15px 12px;
        text-align: right;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .colleges-table td {
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .colleges-table tbody tr {
        transition: background 0.3s;
    }

        .colleges-table tbody tr:hover {
            background: #f8f9fa;
        }

/* البادجات */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.bg-success {
    background: #d4edda;
    color: #155724;
}

.bg-warning {
    background: #fff3cd;
    color: #856404;
}

/* أزرار الإجراءات في الجدول */
.action-buttons-table {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.stat-info h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: rgba(18, 24, 32, 0.7);
    font-size: 0.9rem;
}


.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: rgba(18, 24, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-label {
    color: rgba(18, 24, 32, 0.5);
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-connector {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin: 0 10px;
    position: relative;
    top: -10px;
}

    .step-connector.active {
        background-color: var(--primary-color);
    }

/* الخطوات في المودال */
.form-step {
    display: none;
    padding: 20px 30px;
}

    .form-step.active {
        display: block;
        animation: fadeIn 0.4s ease-out;
    }

.step-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

/* شبكة النموذج */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: rgb(18, 24, 32);
    }

        .form-group label.required::after {
            content: " *";
            color: #e53935;
        }



/* أزرار التنقل في المودال */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-prev {
    background-color: #f5f5f5;
    color: #777;
}

    .btn-prev:hover {
        background-color: #e0e0e0;
    }

.btn-next {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(245, 124, 0, 0.2);
}

    .btn-next:hover {
        background-color: #e65100;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(245, 124, 0, 0.3);
    }



/* إصلاح توزيع أزرار التنقل */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    width: 100%;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    width: 100%;
}

/* تأكد من أن الأزرار في الزوايا */
.btn-prev {
    margin-right: auto;
}

.btn-next {
    margin-left: auto;
}


.progress-container {
    background: transparent;
    padding: 30px 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

    .progress-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.8) 100%);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;

}

.step-connector {
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step:last-child .step-connector {
    display: none;
}

.step.active .step-connector {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-color: #2196F3;
}

    .step.completed .step-number::after {
        content: '✓';
        color: white;
        font-size: 20px;
    }

.step-label {
    color: black;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    max-width: 120px;
    line-height: 1.3;
}

.step.active .step-label {
    color: #333;
    font-weight: 700;
    transform: translateY(-2px);
}

/* تأثيرات hover */
.step:not(.active):hover .step-number {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    cursor: pointer;
}

.step:not(.active):hover .step-label {
    color: #333;
}

.lectures-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .lectures-table th,
    .lectures-table td {
        padding: 10px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .lectures-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }


/* باقي الـ CSS من النظام السابق */
.notification {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.teachers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .teachers-table th,
    .teachers-table td {
        padding: 10px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .teachers-table th {
        background-color: #f8f9fa;
        color: #2c3e50;
        font-weight: bold;
    }

.date-filter {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.teachers-selection {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

.teachers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.teacher-checkbox {
    display: flex;
    align-items: center;
    padding: 5px;
}

    .teacher-checkbox input[type="checkbox"] {
        margin-left: 8px;
    }

.attendance-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .attendance-history-table th,
    .attendance-history-table td {
        padding: 8px;
        text-align: center;
        border: 1px solid #dee2e6;
    }

    .attendance-history-table th {
        background-color: #e9ecef;
        font-weight: bold;
    }


.settings-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    .settings-section h3 {
        margin-bottom: 20px;
        color: #4a5568;
        font-size: 1.25rem;
    }

.notification-preferences-table {
    width: 100%;
    border-collapse: collapse;
}

    .notification-preferences-table th,
    .notification-preferences-table td {
        padding: 12px;
        text-align: right;
        border-bottom: 1px solid #eee;
    }

    .notification-preferences-table th {
        background: #f8fafc;
    }

.form-check-input {
    margin-right: 0;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.notification-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    gap: 15px;
    transition: background-color 0.2s ease;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item.unread {
        background-color: #f0f9ff;
        border-right: 3px solid #0ea5e9;
    }

    .notification-item:hover {
        background-color: #f8fafc;
    }


.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.notification-body {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 6px;
    z-index: 9999;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.notification-type {
    font-size: 0.8rem;
    padding: 2px 8px;
    background: #e2e8f0;
    border-radius: 12px;
    color: #475569;
}

.notification-time {
    font-size: 0.85rem;
    color: #94a3b8;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    z-index: 9999;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px;
}


.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* أنيميشن للإشعارات */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item {
    animation: slideIn 0.3s ease-out;
    z-index: 9999;
}

.students-selection {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
}

    .selection-info span {
        color: #007bff;
        font-weight: bold;
    }

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.student-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

    .student-card:hover {
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    }

.student-card-label {
    cursor: pointer;
    display: block;
    height: 100%;
}

.student-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.student-info {
    margin-bottom: 10px;
}

.student-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
}

.student-number {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
}

.student-department {
    font-size: 11px;
    color: #888;
    margin: 0;
    font-style: italic;
}

.student-check-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* عندما يكون الطالب مختار */
.student-check:checked + .student-card-label .student-check-icon {
    color: #28a745;
}

.student-check:checked + .student-card-label .student-card {
    border-color: #28a745;
    background: #f8fff9;
}

.student-check:checked + .student-card-label .student-avatar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* حالة عدم وجود طلاب */
.no-students {
    text-align: center;
    padding: 40px;
    color: #666;
}

    .no-students i {
        font-size: 48px;
        margin-bottom: 15px;
        color: #ccc;
    }

    .no-students p {
        margin: 0;
        font-size: 16px;
    }

/* شريط البحث */
.search-box {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

    .search-box input {
        flex: 1;
        border: none;
        padding: 12px 15px;
        outline: none;
    }

    .search-box button {
        background: #007bff;
        color: white;
        border: none;
        padding: 0 20px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .search-box button:hover {
            background: #0056b3;
        }

/* التمرير */
.students-grid::-webkit-scrollbar {
    width: 6px;
}

.students-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.students-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .students-grid::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }



.teachers-selection {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
}

.teacher-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .teacher-card:hover {
        border-color: #17a2b8;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(23, 162, 184, 0.15);
    }

.teacher-card-label {
    cursor: pointer;
    display: block;
    height: 100%;
}

.teacher-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    position: relative;
}

.teacher-info {
    margin-bottom: 8px;
}

.teacher-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.teacher-number {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.teacher-department {
    font-size: 12px;
    color: #3498db;
    margin: 0 0 5px 0;
    font-weight: 600;
    background: #ecf0f1;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.teacher-email {
    font-size: 11px;
    color: #95a5a6;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.teacher-check-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #e0e0e0;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.teacher-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #bdc3c7;
    font-size: 14px;
}

/* عندما يكون الأستاذ مختار */
.teacher-check:checked + .teacher-card-label .teacher-check-icon {
    color: #28a745;
    transform: scale(1.1);
}

.teacher-check:checked + .teacher-card-label .teacher-card {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.teacher-check:checked + .teacher-card-label .teacher-avatar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.teacher-check:checked + .teacher-card-label .teacher-badge {
    color: #28a745;
}

/* حالة عدم وجود أساتذة */
.no-teachers {
    text-align: center;
    padding: 50px;
    color: #666;
}

    .no-teachers i {
        font-size: 52px;
        margin-bottom: 15px;
        color: #bdc3c7;
    }

    .no-teachers p {
        margin: 0;
        font-size: 16px;
        font-weight: 500;
    }

/* تأثيرات خاصة للأساتذة */
.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #20c997);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-card:hover::before {
    opacity: 1;
}

.teacher-check:checked + .teacher-card-label .teacher-card::before {
    opacity: 1;
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* تحسينات للشريط المعلوماتي */
.selection-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    .selection-info span {
        color: #17a2b8;
        font-weight: bold;
        font-size: 16px;
    }

    .selection-info button {
        border-radius: 6px;
        padding: 6px 12px;
        font-size: 13px;
    }

/* التمرير */
.teachers-grid::-webkit-scrollbar {
    width: 8px;
}

.teachers-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.teachers-grid::-webkit-scrollbar-thumb {
    background: #17a2b8;
    border-radius: 4px;
}

    .teachers-grid::-webkit-scrollbar-thumb:hover {
        background: #138496;
    }

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .teacher-card {
        padding: 12px;
    }

    .teacher-avatar {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .teacher-name {
        font-size: 13px;
    }

    .teacher-email {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .selection-info {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.teacher-form-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
}


.sub-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

    .sub-section h4 {
        color: #495057;
        margin-bottom: 15px;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 10px;
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

    .btn-prev:hover {
        background: #5a6268;
    }

.btn-next, .btn-submit {
    background: #007bff;
    color: white;
}

    .btn-next:hover, .btn-submit:hover {
        background: #0056b3;
    }

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-control.error {
    border-color: #dc3545;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-partial {
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.installments-container {
    margin-top: 20px;
}

.installment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.installment-info {
    flex: 1;
}

.installment-actions {
    margin-left: 10px;
}

.report-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.report-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    margin: 0 10px;
    min-width: 200px;
}

    .report-item h4 {
        margin: 0 0 10px 0;
        color: #2c3e50;
        border-bottom: 2px solid #3498db;
        padding-bottom: 5px;
    }

    .report-item p {
        margin: 5px 0;
        color: #555;
    }

@media (max-width: 768px) {
    .report-row {
        flex-direction: column;
    }

    .report-item {
        margin: 5px 0;
    }
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkmark {
    margin-right: 8px;
}




.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

    .form-actions .btn {
        flex: 1;
    }

.delete-content {
    text-align: center;
    padding: 20px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-right: 4px solid #3498db;
}

.detail-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.detail-value {
    color: #555;
}

.installments-summary {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fc;
    border-radius: 6px;
    border: 1px solid #b3d9ff;
}

.installment-progress {
    margin: 10px 0;
}

.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
}

.progress-fill {
    background: #27ae60;
    height: 100%;
    transition: width 0.3s ease;
}

.installment-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
}

/* تحسينات للأزرار */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}





/* الجداول */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .data-table th {
        padding: 12px 15px;
        text-align: right;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
    }

    .data-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dee2e6;
    }

    .data-table tr:hover {
    }


/* شريط التقدم */
.progress-section {
    margin-top: 20px;
}

.progress {
    height: 10px;
    margin: 10px 0;
}

/* التنبيهات */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    border-right: 4px solid;
}

    .alert i {
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .alert div {
        flex: 1;
    }

    .alert strong {
        display: block;
        margin-bottom: 5px;
        z-index: 5000;
    }

    .alert p {
        margin: 0;
        font-size: 0.9rem;
    }

/* تخصيصات Bootstrap */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.text-danger {
    color: var(--danger-color) !important;
    font-weight: 600;
}

.text-success {
    color: var(--success-color) !important;
    font-weight: 600;
}



.tabs-container {
    margin: 20px 0;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tab-button.active {
        border-bottom-color: #007bff;
        color: #007bff;
        font-weight: bold;
    }

    .tab-button:hover {
        background-color: #f8f9fa;
    }

.documents-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.form-check {
    margin-bottom: 5px;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .applications-table th,
    .applications-table td {
        padding: 12px;
        text-align: right;
        border-bottom: 1px solid #dee2e6;
    }

    .applications-table th {
        background-color: #f8f9fa;
        font-weight: bold;
    }

.action-buttons-table {
    display: flex;
    gap: 5px;
    justify-content: center;
}

    .action-buttons-table .btn {
        padding: 4px 8px;
        font-size: 12px;
    }
/* أنماط تفاصيل القبول */
.approval-details {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .approval-details h4 {
        color: #155724;
        margin-bottom: 15px;
        border-bottom: 2px solid #155724;
        padding-bottom: 10px;
    }

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

    .detail-item label {
        font-weight: bold;
        color: #155724;
        margin: 0;
    }

    .detail-item span {
        color: #495057;
        font-weight: 500;
    }

/* أنماط التحميل */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .loading-content p {
        margin-top: 15px;
        color: #495057;
        font-weight: 500;
    }

.warning-message {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

    .warning-message i {
        color: #856404;
        font-size: 24px;
    }

    .warning-message p {
        margin: 0;
        color: #856404;
        font-weight: 500;
    }

.student-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}


/* تأثيرات للجدول */
.students-table tbody tr {
    transition: all 0.3s ease;
}

    .students-table tbody tr:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }


/* تأثيرات للجدول */
.colleges-table tbody tr {
    transition: all 0.3s ease;
}

    .colleges-table tbody tr:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

/* تنسيق الأزرار */
.action-buttons-table {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* تنسيقات قسم البحث والفلترة */
.search-filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
}

/* قسم الفلترة المتقدمة */
.advanced-filter-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

    .filter-header h4 {
        margin: 0;
        color: #495057;
    }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-group label {
        font-weight: 600;
        color: #495057;
        font-size: 0.9rem;
    }

.range-inputs,
.date-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .range-inputs span,
    .date-inputs span {
        color: #6c757d;
        font-size: 0.9rem;
    }

.filter-results {
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    font-weight: 500;
    color: #495057;
}

/* تأثيرات الرسوم المتحركة */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}





/* تنسيقات الاستجابة */
@media (max-width: 768px) {
    .search-filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .range-inputs,
    .date-inputs {
        flex-direction: column;
        align-items: stretch;
    }
}

.conversations-container {
    direction: rtl;
}

.message-input input {
    direction: rtl;
    text-align: right;
}

.conversation-preview {
    direction: rtl;
}

/* تأثيرات responsive */
@media (max-width: 768px) {
    .conversations-container {
        flex-direction: column;
        height: auto;
    }

    .conversations-list {
        width: 100%;
        height: 300px;
    }

    .conversation-area {
        height: 400px;
    }
}

/* أنيميشن للرسائل */
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: messageSlide 0.3s ease-out;
}



.chat-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chat-icon-wrapper:hover .chat-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
    z-index:9999;
}

.chat-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: ping 1.5s ease-in-out infinite both;
}

.chat-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

    .chat-tooltip::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #333;
    }

.chat-icon-wrapper:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

@keyframes ping {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    75%, 100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* تأثيرات للمحادثات الجديدة */
.chat-icon.has-new-messages .chat-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1.05);
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .chat-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .chat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .chat-notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}
.header {
    background-color: rgba(128, 128, 128, 0.9);
    padding: 0 20px;
    margin-bottom: 30px;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 60px;
    border-radius: 0;
    z-index: 4000;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    position: relative;
}

    .icon-wrapper:hover {
        transform: translateY(-3px);
    }

.icon-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .icon-box img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .icon-box i {
        font-size: 24px;
        color: white;
    }



/*.chat-icon-wrapper:hover, .notification-icon:hover, .profile-icon:hover {
    transform: translateY(-3px);
}*/

.chat-icon, .notification-icon, .profile-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color:#f8f9fa;
    background-color:#333;
}

    .chat-icon-wrapper:hover .chat-icon,
    .notification-icon:hover .notification-icon,
    .profile-icon:hover .profile-icon {
        background: white;
        color:Black;
    }

.notification-badge, .chat-notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: transparent;
    color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulse-ring 1.5s infinite;
}

.chat-tooltip, .tooltip {
    font-size: 12px;
    opacity: 0.9;
    text-align: center;
    color: white;
}

.Logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

    .Logout-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        /*transform: translateY(-2px);*/
    }



@media (max-width: 768px) {
    .user-info {
        gap: 10px;
    }

    .chat-icon, .notification-icon, .profile-icon {
        width: 40px;
        height: 40px;
    }

    .icon-box img {
        width: 40px;
        height: 40px;
    }

    .chat-tooltip, .tooltip {
        font-size: 10px;
    }
}





.connection-status {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.conversation-item.unread {
    background: rgba(0, 123, 255, 0.1);
    border-right: 3px solid #007bff;
}

.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.close-notification {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    margin-right: 10px;
}


.chat-messages-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-messages {
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 70%;
    animation: fadeIn 0.3s ease-in;
}

    .message.own {
        background: #007bff;
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 2px;
    }

    .message.other {
        background: white;
        border: 1px solid #e9ecef;
        align-self: flex-start;
        border-bottom-left-radius: 2px;
    }

    .message.system {
        background: #f8f9fa;
        color: #6c757d;
        align-self: center;
        max-width: 90%;
        font-style: italic;
        text-align: center;
    }

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85em;
}

.user-name {
    font-weight: bold;
}

.message-time {
    opacity: 0.7;
    font-size: 0.8em;
}

.typing-indicator {
    padding: 10px 15px;
    color: #6c757d;
    font-style: italic;
    display: none;
}

.chat-input-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.message-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.message-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.send-btn {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

    .send-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }

    .send-btn:hover:not(:disabled) {
        background: #0056b3;
    }

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter {
    font-size: 0.8em;
    color: #6c757d;
}

    .char-counter.warning {
        color: #dc3545;
    }

.users-section {
    margin-top: 30px;
}

.users-title {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

    .user-item:hover {
        background: #f8f9fa;
    }

    .user-item.loading {
        justify-content: center;
        opacity: 0.7;
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

    .user-avatar.online {
        background: #d4edda;
        color: #155724;
    }

    .user-avatar.away {
        background: #fff3cd;
        color: #856404;
    }

    .user-avatar.busy {
        background: #f8d7da;
        color: #721c24;
    }



.user-name {
    font-weight: bold;
    font-size: 0.9em;
}

.user-status {
    font-size: 0.8em;
    color: #6c757d;
}



.system-card:hover .tooltip {
    opacity: 1;
}


.currency-converter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.exchange-rate-card {
    border-left: 4px solid #28a745;
    background: #f8f9fa;
}

.conversion-result {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 5px;
    padding: 15px;
}



/* ===== التبويبات الرئيسية ===== */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

    .tab:hover {
        background: #e9ecef;
        color: #495057;
    }

    .tab.active {
        background: #007bff;
        color: white;
        box-shadow: 0 2px 5px rgba(0,123,255,0.3);
    }

/* ===== التبويبات الفرعية ===== */
.subtabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    z-index: 5000;
}

.subtab {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

    .subtab:hover {
        background: #e9ecef;
        color: #495057;
    }

    .subtab.active {
        background: #28a745;
        color: white;
        box-shadow: 0 1px 3px rgba(40,167,69,0.3);
    }

/* ===== محتوى التبويبات ===== */
.tab-content, .subtab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-content.active, .subtab-content.active {
        display: block;
    }

/* ===== شريط البحث ===== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

    .search-box input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }

    .search-box button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .search-box button:hover {
            background: #0056b3;
        }

/* ===== الجداول ===== */
.assignment-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .assignment-orders-table th {
        background: #f8f9fa;
        padding: 12px 15px;
        text-align: right;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
    }

    .assignment-orders-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }

    .assignment-orders-table tr:hover {
        background: #f8f9fa;
    }

    .assignment-orders-table tr:last-child td {
        border-bottom: none;
    }

/* ===== أزرار الإجراءات ===== */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

    .action-buttons .btn {
        padding: 6px 10px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .action-buttons .btn-sm {
        width: 32px;
        height: 32px;
    }

    .action-buttons .btn-primary {
        background: #007bff;
        color: white;
    }

    .action-buttons .btn-success {
        background: #28a745;
        color: white;
    }

    .action-buttons .btn-warning {
        background: #ffc107;
        color: #212529;
    }

    .action-buttons .btn-info {
        background: #17a2b8;
        color: white;
    }

    .action-buttons .btn-danger {
        background: #dc3545;
        color: white;
    }

    .action-buttons .btn-secondary {
        background: #6c757d;
        color: white;
    }

    .action-buttons .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

/* ===== الحالات ===== */
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 70px;
}

.status-معلق {
    background: #fff3cd;
    color: #856404;
}

.status-مقبول {
    background: #d1ecf1;
    color: #0c5460;
}

.status-مرفوض {
    background: #f8d7da;
    color: #721c24;
}

.status-نشط {
    background: #d4edda;
    color: #155724;
}

.status-مكتمل {
    background: #d1ecf1;
    color: #0c5460;
}

.status-ملغى {
    background: #e2e3e5;
    color: #383d41;
}

.status-خفيفة {
    background: #d1ecf1;
    color: #0c5460;
}

.status-متوسطة {
    background: #fff3cd;
    color: #856404;
}

.status-شديدة {
    background: #f8d7da;
    color: #721c24;
}

.status-منخفضة {
    background: #e2e3e5;
    color: #383d41;
}

.status-متوسط {
    background: #d1ecf1;
    color: #0c5460;
}

.status-عالية {
    background: #fff3cd;
    color: #856404;
}

.status-عاجلة {
    background: #f8d7da;
    color: #721c24;
}

/* ===== شارات الأولوية ===== */
.priority-badge {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.8rem;
}

.priority-normal {
    color: #6c757d;
}

.priority-high {
    color: #ffc107;
}

.priority-urgent {
    color: #dc3545;
}


/* ===== تصميم قائمة الشؤون القانونية ===== */
.submenu-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-right: 3px solid #007bff;
    margin: 5px 0;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .submenu-header i {
        color: #007bff;
        font-size: 0.9rem;
    }

    .submenu-header span {
        font-size: 0.85rem;
    }

/* تحسين شكل القوائم الفرعية */
.nav-sidebar .nav-treeview > li > a {
    padding: 8px 15px 8px 35px;
    font-size: 0.85rem;
    border-right: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: 5000;
}

    .nav-sidebar .nav-treeview > li > a:hover {
        background: #e3f2fd;
        border-right-color: #2196f3;
        color: #1976d2;
    }

    .nav-sidebar .nav-treeview > li > a i {
        margin-left: 8px;
        width: 16px;
        text-align: center;
        font-size: 0.8rem;
        color: #666;
    }

    .nav-sidebar .nav-treeview > li > a:hover i {
        color: #1976d2;
    }

/* تلوين أيقونات الشؤون القانونية */
.fa-balance-scale {
    color: #4caf50;
}

.fa-handshake {
    color: #ff9800;
}

.fa-file-contract {
    color: #2196f3;
}

.fa-gavel {
    color: #f44336;
}

.fa-signature {
    color: #9c27b0;
}

.fa-graduation-cap {
    color: #607d8b;
}

.fa-comments {
    color: #00bcd4;
}

.fa-clipboard-check {
    color: #8bc34a;
}

.fa-chart-bar {
    color: #795548;
}

.fa-user-tie {
    color: #3f51b5;
}

.fa-landmark {
    color: #ff5722;
}

.fa-file-pdf {
    color: #f44336;
}

.fa-certificate {
    color: #ffc107;
}

.fa-archive {
    color: #795548;
}

.fa-chalkboard-teacher {
    color: #009688;
}

.fa-headset {
    color: #00bcd4;
}

.fa-file-medical-alt {
    color: #4caf50;
}

.fa-question-circle {
    color: #ff9800;
}

.fa-book {
    color: #795548;
}

.fa-scroll {
    color: #8bc34a;
}

.fa-chart-line {
    color: #e91e63;
}

.fa-chart-pie {
    color: #9c27b0;
}

.fa-search {
    color: #ff9800;
}

.fa-user-lock {
    color: #f44336;
}

.fa-database {
    color: #607d8b;
}

/* تأثيرات hover للقائمة الرئيسية */
.nav-sidebar > .nav-item > .nav-link:hover {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), transparent);
}

.nav-sidebar > .nav-item.menu-open > .nav-link,
.nav-sidebar > .nav-item > .nav-link:active {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.2), transparent);
    border-right-color: #2196f3;
}

.template-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

    .template-actions-header .search-box {
        flex: 1;
        min-width: 300px;
    }

    .template-actions-header .action-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

.template-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    height: fit-content;
}

    .template-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .template-card.default {
        border-left: 4px solid #28a745;
        background: linear-gradient(135deg, #f8fff8, #ffffff);
    }

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.template-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.template-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.template-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-type {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-category {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-default {
    background: #e8f5e8;
    color: #2e7d32;
}

.template-description {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 40px;
}

.template-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.template-info {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

.template-actions {
    display: flex;
    gap: 5px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

    .empty-state i {
        margin-bottom: 20px;
        color: #dee2e6;
    }

    .empty-state h3 {
        margin-bottom: 10px;
        color: #6c757d;
    }

    .empty-state p {
        margin-bottom: 20px;
    }

.variables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.variable-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .variable-card:hover {
        background: #e3f2fd;
        border-color: #2196f3;
        transform: translateY(-1px);
    }

.variable-name {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 5px;
}

.variable-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

.editor-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.editor-content {
    min-height: 300px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    border: none;
    resize: vertical;
}

@media (max-width: 768px) {
    .template-actions-header {
        flex-direction: column;
        align-items: stretch;
    }

        .template-actions-header .search-box {
            min-width: auto;
        }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .template-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .template-actions {
        justify-content: center;
    }
}


.filter-tabs {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.tabs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: #e9ecef;
}

.filter-tab {
    background: #fff;
}

.tab-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.filter-tab.active .tab-header {
    background: #007bff;
    color: #fff;
    border-bottom-color: #0056b3;
}

.tab-header:hover {
    background: #e9ecef;
}

.filter-tab.active .tab-header:hover {
    background: #007bff;
}

.tab-header i:first-child {
    margin-left: 8px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filter-tab.active .toggle-icon {
    transform: rotate(180deg);
}

.tab-content {
    display: none;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.filter-tab.active .tab-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.filter-option {
    padding: 8px 12px;
    border: none;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .filter-option:hover {
        background: #e9ecef;
    }

    .filter-option.active {
        background: #007bff;
        color: #fff;
        border-color: #0056b3;
    }

/* شريط حالة الفلترة */
.filter-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-status-title {
    font-weight: 600;
    color: #495057;
}

.active-filter-tag {
    background: #007bff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .active-filter-tag button {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 14px;
        padding: 0;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .active-filter-tag button:hover {
            background: rgba(255,255,255,0.2);
        }

.clear-all-filters {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .clear-all-filters:hover {
        background: #5a6268;
    }

.students-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
}

/* شريط البحث والإجراءات */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 10px 45px 10px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 14px;
    }

    .search-box button {
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: #007bff;
        color: #fff;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
    }

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* تنسيقات الجدول المحسنة */
.student-name {
    display: flex;
    flex-direction: column;
}

    .student-name small {
        color: #6c757d;
        font-size: 11px;
    }

.gender-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

    .gender-badge.male {
        background: #d1ecf1;
        color: #0c5460;
    }

    .gender-badge.female {
        background: #f8d7da;
        color: #721c24;
    }

.academic-level {
    background: #e2e3e5;
    color: #383d41;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.study-type-badge {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

    .empty-state i {
        margin-bottom: 15px;
        color: #dee2e6;
    }

@media (max-width: 768px) {
    .tabs-container {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .filter-status-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .active-filters {
        justify-content: center;
    }
}

/* تنسيقات معاينة الكتاب */
.book-preview-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.book-number-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

    .book-number-badge i {
        font-size: 24px;
    }

.book-status {
    display: flex;
    gap: 10px;
}

.status-badge, .priority-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processed {
    background: #d1edff;
    color: #0c5460;
}

.status-sent {
    background: #d4edda;
    color: #155724;
}

.priority-normal {
    background: #e2e3e5;
    color: #383d41;
}

.priority-high {
    background: #fff3cd;
    color: #856404;
}

.priority-urgent {
    background: #f8d7da;
    color: #721c24;
}

.preview-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

    .section-title i {
        margin-left: 8px;
        color: #007bff;
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-right: 3px solid #007bff;
}

    .info-item label {
        font-weight: bold;
        color: #495057;
    }

.subject-text {
    font-weight: bold;
    color: #007bff;
}

.description-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-right: 4px solid #28a745;
    line-height: 1.6;
}

.attachment-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 8px;
    border: 1px solid #b3d7ff;
}

    .attachment-item i {
        font-size: 24px;
        color: #007bff;
    }

.attachment-details {
    display: flex;
    flex-direction: column;
}

.attachment-name {
    font-weight: bold;
    color: #495057;
}

.attachment-size {
    font-size: 12px;
    color: #6c757d;
}

.no-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #6c757d;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .preview-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* تنسيقات معاينة المرفقات */
.attachment-info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.file-info-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2.5rem;
    color: #007bff;
    width: 60px;
    text-align: center;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 15px;
}

.file-type, .file-size {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #6c757d;
}

/* منطقة المعاينة */
.preview-area {
    min-height: 400px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.preview-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* تحكمات PDF */
.pdf-controls, .image-controls, .text-controls {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-info {
    font-weight: bold;
    color: #495057;
    margin: 0 15px;
}

.pdf-viewer-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background: #525659;
}

.pdf-canvas {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
}

.pdf-navigation {
    background: #f8f9fa;
    padding: 10px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* معاينة الصور */
.image-viewer-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
}

.img-preview {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* معاينة النصوص */
.text-preview {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    direction: ltr;
    text-align: left;
}

/* حالة عدم إمكانية المعاينة */
.no-preview-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

    .no-preview-message i {
        margin-bottom: 20px;
        color: #dc3545;
    }

/* حالة التحميل */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .file-info-card {
        flex-direction: column;
        text-align: center;
    }

    .file-meta {
        justify-content: center;
    }

    .pdf-viewer-container, .image-viewer-container {
        padding: 10px;
    }

    .pdf-controls, .image-controls, .text-controls {
        flex-wrap: wrap;
    }
}

/* تأثيرات الظهور */
.preview-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* شريط التمرير المخصص */
.preview-area ::-webkit-scrollbar {
    width: 8px;
}

.preview-area ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.preview-area ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .preview-area ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }


/* تنسيقات إضافية للكتب */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 18px;
    flex-direction: column;
}

.loading-spinner {
    text-align: center;
}

.book-preview-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.book-number-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.book-status {
    display: flex;
    gap: 10px;
}

.status-badge, .priority-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processed {
    background: #d1edff;
    color: #0c5460;
}

.status-sent {
    background: #d4edda;
    color: #155724;
}

.priority-normal {
    background: #e2e3e5;
    color: #383d41;
}

.priority-high {
    background: #fff3cd;
    color: #856404;
}

.priority-urgent {
    background: #f8d7da;
    color: #721c24;
}

.preview-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-right: 3px solid #007bff;
}

    .info-item label {
        font-weight: bold;
        color: #495057;
    }

.subject-text {
    font-weight: bold;
    color: #007bff;
}

.description-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-right: 4px solid #28a745;
    line-height: 1.6;
}

.attachment-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 8px;
    border: 1px solid #b3d7ff;
}

.no-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #6c757d;
    justify-content: center;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .preview-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }
}


/* تحسينات معاينة المرفقات */
.preview-area {
    min-height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.pdf-controls, .image-controls, .text-controls {
    padding: 10px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-info {
    margin: 0 15px;
    font-weight: bold;
}

.pdf-viewer-container, .image-viewer-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pdf-canvas {
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.img-preview {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.text-preview {
    flex: 1;
    margin: 0;
    padding: 20px;
    background: white;
    border: none;
    overflow: auto;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pdf-navigation {
    padding: 10px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.no-preview-message, .loading-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

    .no-preview-message i, .loading-message i {
        color: #6c757d;
        margin-bottom: 20px;
    }

.attachment-info-section {
    margin-bottom: 20px;
}

.file-info-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-right: 15px;
}

.file-details h6 {
    margin: 0 0 5px 0;
    font-weight: bold;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #6c757d;
}

.file-type, .file-size {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .preview-container {
        height: 400px;
    }

    .file-info-card {
        flex-direction: column;
        text-align: center;
    }

    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}


.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-sent {
    background-color: #28a745;
    color: white;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.priority-badge {
    margin-right: 5px;
    font-size: 12px;
}

.priority-high {
    color: #fd7e14;
}

.priority-urgent {
    color: #dc3545;
}

.action-buttons .btn {
    margin: 2px;
    padding: 4px 8px;
    font-size: 12px;
}



.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.modal-xl .modal-content {
    max-width: 95%;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    position: relative;
}

    .modal-header h2,
    .modal-header h5 {
        margin: 0;
        font-weight: 600;
        text-align: center;
    }

.close {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

    .close:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #dee2e6;
}


.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-level {
    font-weight: 600;
    color: #495057;
    min-width: 50px;
    text-align: center;
}

.page-info {
    font-weight: 600;
    color: #495057;
    margin: 0 10px;
}

.preview-area {
    height: calc(100% - 120px);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: auto;
    background: #f8f9fa;
    position: relative;
}

.preview-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* معاينة الصور */
.image-viewer-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* معاينة PDF */
.pdf-viewer-container {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* معاينة النصوص */
.text-preview {
    background: white;
    padding: 20px;
    margin: 0;
    height: 100%;
    overflow: auto;
    text-align: right;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    border-radius: 0;
}

/* معاينة مستندات Office */
.word-viewer-container,
.excel-viewer-container {
    height: 100%;
    width: 100%;
}

.word-iframe,
.excel-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* معلومات الملف */
.file-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.file-details {
    flex: 1;
    margin: 0 15px;
}

.file-name {
    margin: 0 0 5px 0;
    color: #495057;
    font-weight: 600;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #6c757d;
}

.file-icon {
    font-size: 2.5rem;
    color: #667eea;
}

.file-actions {
    display: flex;
    gap: 8px;
}

/* حالة التحميل */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #667eea;
}

    .loading-message .spinner-border {
        width: 3rem;
        height: 3rem;
        margin-bottom: 15px;
    }

/* عدم إمكانية المعاينة */
.no-preview-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
}

    .no-preview-message i {
        margin-bottom: 20px;
        color: #adb5bd;
    }

/* أزرار القدم */
.footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* وضع ملء الشاشة */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
}

    .fullscreen-mode .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }

/* تأثيرات التدوير */
.rotated-90 {
    transform: rotate(90deg);
}

.rotated-180 {
    transform: rotate(180deg);
}

.rotated-270 {
    transform: rotate(270deg);
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .preview-controls {
        flex-direction: column;
        gap: 10px;
    }

    .controls-group {
        justify-content: center;
    }

    .file-info-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .file-details {
        margin: 0;
    }

    .footer-actions {
        justify-content: center;
    }

        .footer-actions .btn {
            flex: 1;
            min-width: 120px;
        }
}

/* شريط التمرير المخصص */
.preview-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.preview-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.preview-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .preview-area::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }



.modal-header-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.specialization-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.specialization-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.specialization-details {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hours-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.selection-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
}

.stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

    .tab-button.active {
        border-bottom-color: #007bff;
        color: #007bff;
        font-weight: bold;
    }

.tab-content {
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

    .tab-content.active {
        display: block;
    }

.search-filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .search-filter-section .search-box {
        flex: 1;
        min-width: 250px;
    }

.filter-options {
    display: flex;
    gap: 10px;
}

    .filter-options select {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        min-width: 150px;
    }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.course-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .course-card:hover {
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    }

    .course-card.selected {
        border-color: #28a745;
        background: #f8fff9;
    }

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.course-code {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.course-hours {
    color: #6c757d;
    font-size: 0.9em;
}

.course-name {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.course-college {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.course-level {
    display: inline-block;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #495057;
}

.selected-courses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.selected-course-info {
    flex: 1;
}

.selected-course-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.selected-course-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.remove-course-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .remove-course-btn:hover {
        background: #c82333;
    }

.no-courses-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

    .no-courses-message i {
        font-size: 3em;
        margin-bottom: 15px;
        opacity: 0.5;
    }

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .specialization-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-filter-section {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }
}


.university-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid #bbdefb;
}


.invoice-preview {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007bff;
}

.invoice-logo {
    text-align: center;
}

    .invoice-logo img {
        max-width: 150px;
        height: auto;
    }

.invoice-title {
    text-align: center;
    flex: 1;
}

    .invoice-title h1 {
        color: #007bff;
        margin: 0;
        font-size: 2em;
    }

    .invoice-title p {
        color: #666;
        margin: 5px 0 0 0;
    }

.invoice-info {
    text-align: left;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.invoice-section {
    margin-bottom: 20px;
}

    .invoice-section h3 {
        color: #007bff;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.detail-label {
    font-weight: bold;
    color: #555;
}

.detail-value {
    color: #333;
}

.amount-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.total-amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    margin: 20px 0;
}

.invoice-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* تنسيقات الطباعة */
@media print {
    body * {
        visibility: hidden;
    }

    .invoice-preview, .invoice-preview * {
        visibility: visible;
    }

    .invoice-preview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }

    .preview-actions, .close {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .invoice-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .invoice-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .preview-header {
        flex-direction: column;
        text-align: center;
    }

    .preview-actions {
        justify-content: center;
    }
}



.user-details-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.user-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

    .user-header i {
        font-size: 4rem;
        color: #007bff;
        margin-bottom: 10px;
    }

    .user-header h4 {
        color: #333;
        margin: 0;
    }

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

    .detail-section h5 {
        color: #007bff;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #dee2e6;
    }

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

    .detail-item:last-child {
        border-bottom: none;
    }

    .detail-item label {
        font-weight: bold;
        color: #555;
        min-width: 150px;
    }

    .detail-item span {
        color: #333;
        text-align: left;
    }

.user-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* تحسين التبويبات في نموذج التعديل */
.form-tabs {
    margin-bottom: 20px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.tab-header {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

    .tab-header.active {
        border-bottom-color: #007bff;
        color: #007bff;
        font-weight: bold;
    }

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

/* تحسين التبويبات في حالة الهواتف */
@media (max-width: 768px) {
    .tab-headers {
        flex-direction: column;
    }

    .tab-header {
        text-align: right;
        border-bottom: 1px solid #dee2e6;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .detail-item label {
            margin-bottom: 5px;
        }
}


/* البطاقات */


    .system-card:hover {
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,123,255,0.1);
    }

    .system-card.active {
        border-color: #007bff;
        background: #f8f9ff;
    }

    .system-card i {
        font-size: 2rem;
        color: #007bff;
        margin-bottom: 10px;
    }

   

/* أزرار الإجراءات */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-buttons-table {
    display: flex;
    gap: 5px;
    justify-content: center;
}

    .action-buttons-table .btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

/* شريط البحث */
.search-box {
    position: relative;
    margin-bottom: 20px;
    max-width: 400px;
}

    .search-box input {
        width: 100%;
        padding: 10px 45px 10px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        direction: rtl;
    }

    .search-box button {
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #6c757d;
    }


.close {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

    .close:hover {
        color: #000;
    }


.tabs-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.tab-button {
    position: relative;
    transition: all 0.3s ease;
}

    .tab-button.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateY(-2px);
    }

    .tab-button .badge {
        background: rgba(255,255,255,0.2);
        color: white;
    }



.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

    .form-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .dashboard-section {
        margin: 10px;
        padding: 15px;
    }

    .system-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tabs {
        flex-direction: column;
    }

   

    .form-row {
        flex-direction: column;
    }

    .form-col {
        width: 100%;
    }
}



/* زر تبديل القائمة */
.toggle-menu {
    position: fixed;
    top: 120px;
    right: 250px;
    z-index: 1001;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
}

    .toggle-menu:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    }

    .toggle-menu i {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }


    .mcd-menu.menu-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mcd-menu.menu-closed {
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
    }

    .mcd-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-top: var(--header-height);
    }

    .mcd-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

    .mcd-menu > ul > li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mcd-menu a {
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: var(--transition);
        position: relative;
    }

        .mcd-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--accent-color);
            padding-right: 25px;
        }

        .mcd-menu a.active {
            background: var(--accent-color);
            color: white;
        }

        .mcd-menu a i:first-child {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
        }

        .mcd-menu a strong {
            font-weight: 500;
            flex: 1;
            z-index: 5000;
        }



/* حالات خاصة للقائمة المغلقة */
.mcd-menu.menu-closed  {
    right: 0;
    width: calc(100% - var(--sidebar-collapsed-width));
}

.mcd-menu.menu-closed ~ .main-content {
    margin-right: var(--sidebar-collapsed-width);
}

/* التحميل */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.spinner-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}





/* أنماط إضافية للجدول */
.students-table {
    font-size: 0.85rem;
}

    .students-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #2c3e50;
        padding: 12px 8px;
        white-space: nowrap;
    }

    .students-table td {
        padding: 10px 8px;
        vertical-align: middle;
    }

.student-name strong {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.student-name small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

/* أنماط البادجات */
.gender-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

    .gender-badge.male {
        background: #e3f2fd;
        color: #1976d2;
    }

    .gender-badge.female {
        background: #fce4ec;
        color: #c2185b;
    }

.study-type-badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: #e8f5e8;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 500;
}

.nationality-badge {
    padding: 4px 8px;
    background: #fff3e0;
    color: #ef6c00;
    border-radius: 6px;
    font-size: 0.75rem;
}

.admission-channel-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-warning {
    background: #fff8e1;
    color: #f57f17;
}

.badge-info {
    background: #e0f2f1;
    color: #00695c;
}

.badge-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.badge-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-secondary {
    background: #f5f5f5;
    color: #616161;
}

/* أنماط التواريخ والأرقام */
.birth-date, .graduation-year, .admission-year {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.student-gpa {
    font-weight: 600;
    color: #2e7d32;
}

.failure-years, .college-failure-years {
    font-weight: 500;
    color: #d32f2f;
}

/* أزرار الإجراءات */
.action-buttons-table {
    display: flex;
    gap: 5px;
    justify-content: center;
}

    .action-buttons-table .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

/* حالة فارغة */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

    .empty-state i {
        color: #dee2e6;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        color: #495057;
        margin-bottom: 10px;
    }

    .empty-state p {
        margin-bottom: 20px;
    }

/* تحسينات التجاوب */
@media (max-width: 1400px) {
    .table-container {
        overflow-x: auto;
    }

    .students-table {
        min-width: 1200px;
    }
}



.student-name strong {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.student-name small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

/* أنماط البادجات */
.gender-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

    .gender-badge.male {
        background: #e3f2fd;
        color: #1976d2;
    }

    .gender-badge.female {
        background: #fce4ec;
        color: #c2185b;
    }

.study-type-badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: #e8f5e8;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 500;
}

.nationality-badge {
    padding: 4px 8px;
    background: #fff3e0;
    color: #ef6c00;
    border-radius: 6px;
    font-size: 0.75rem;
}

.admission-channel-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-warning {
    background: #fff8e1;
    color: #f57f17;
}

.badge-info {
    background: #e0f2f1;
    color: #00695c;
}

.badge-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.badge-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-secondary {
    background: #f5f5f5;
    color: #616161;
}

/* أنماط التواريخ والأرقام */
.birth-date, .graduation-year, .admission-year {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.student-gpa {
    font-weight: 600;
    color: #2e7d32;
}

.failure-years, .college-failure-years {
    font-weight: 500;
    color: #d32f2f;
}

/* أزرار الإجراءات */
.action-buttons-table {
    display: flex;
    gap: 5px;
    justify-content: center;
}

    .action-buttons-table .btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

/* حالة فارغة */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

    .empty-state i {
        color: #dee2e6;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        color: #495057;
        margin-bottom: 10px;
    }

    .empty-state p {
        margin-bottom: 20px;
    }

/* تحسينات التجاوب */
@media (max-width: 1400px) {
    .table-container {
        overflow-x: auto;
    }

    .students-table {
        min-width: 1200px;
    }
}





.student-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.student-info {
    flex: 1;
}

    .student-info h3 {
        margin: 0 0 10px 0;
        font-size: 24px;
        font-weight: 700;
        color: #333;
    }

.student-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.completion-stats {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

.progress {
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

.review-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .review-card h4 {
        margin: 0 0 15px 0;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

    .review-item:last-child {
        border-bottom: none;
    }

    .review-item label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
    }

    .review-item span {
        color: #2c3e50;
        font-weight: 500;
    }

.confirmation-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.image-preview {
    margin-top: 10px;
    text-align: center;
}

    .image-preview img {
        max-width: 150px;
        max-height: 150px;
        border-radius: 8px;
        border: 2px solid #dee2e6;
    }

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .student-meta {
        justify-content: center;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}





.documents-dashboard {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
}

.documents-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

    .documents-header h1 {
        margin: 0 0 10px 0;
        font-size: 28px;
        font-weight: 700;
    }

    .documents-header p {
        margin: 0;
        opacity: 0.9;
        font-size: 16px;
    }

.documents-container {
    display: flex;
    min-height: 600px;
}


.recent-documents {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.recent-info {
    flex: 1;
}

    .recent-info span {
        display: block;
        font-size: 13px;
        font-weight: 500;
    }

    .recent-info small {
        color: #6c757d;
        font-size: 11px;
    }

.documents-content {
    flex: 1;
    padding: 25px;
}

.content-section {
    display: none;
}

    .content-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

.section-header {
    margin-bottom: 25px;
}

    .section-header h2 {
        margin: 0 0 8px 0;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .section-header p {
        margin: 0;
        color: #6c757d;
    }

/* تنسيقات الشهادات */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.certificate-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .certificate-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.certificate-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #6f42c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.certificate-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.certificate-card p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* تنسيقات الإحصائيات */
.statistics-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-group label {
        font-weight: 600;
        color: #495057;
        font-size: 14px;
    }

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.report-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dee2e6;
}

    .report-header i {
        color: #007bff;
        font-size: 18px;
    }

    .report-header h5 {
        margin: 0;
        color: #2c3e50;
    }

.report-content {
    padding: 20px;
}

    .report-content p {
        margin: 0 0 15px 0;
        color: #6c757d;
    }

.report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* تنسيقات رفع الملفات */
.upload-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

    .upload-area:hover {
        border-color: #007bff;
        background: #f8f9ff;
    }

    .upload-area.dragover {
        border-color: #007bff;
        background: #e7f1ff;
    }

.upload-content i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-content h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.upload-content p {
    margin: 0 0 10px 0;
    color: #6c757d;
}

.browse-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.uploaded-files {
    margin-bottom: 20px;
}

    .uploaded-files h5 {
        margin: 0 0 15px 0;
        color: #495057;
    }

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    font-size: 18px;
}

    .file-icon.pdf {
        background: #dc3545;
    }

    .file-icon.excel {
        background: #28a745;
    }

    .file-icon.word {
        background: #007bff;
    }

    .file-icon.ppt {
        background: #fd7e14;
    }

.file-info {
    flex: 1;
}

    .file-info .file-name {
        display: block;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .file-info .file-size {
        font-size: 12px;
        color: #6c757d;
    }

.file-actions {
    display: flex;
    gap: 5px;
}

.upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* تنسيقات القوالب */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.template-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .template-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.template-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #dee2e6;
}

    .template-header i {
        color: #007bff;
        font-size: 20px;
    }

    .template-header h5 {
        margin: 0;
        color: #2c3e50;
    }

.template-content {
    padding: 20px;
}

    .template-content p {
        margin: 0 0 15px 0;
        color: #6c757d;
    }

.template-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.template-actions {
    display: flex;
    gap: 8px;
}

/* تنسيقات الوثائق */
.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .document-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

.document-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 20px;
}

.document-info {
    flex: 1;
}

    .document-info h5 {
        margin: 0 0 5px 0;
        color: #2c3e50;
    }

    .document-info p {
        margin: 0;
        color: #6c757d;
        font-size: 14px;
    }

.document-actions {
    display: flex;
    gap: 8px;
}




.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e9ecef;
}

    .form-header h1 {
        color: #495057;
        font-size: 1.8rem;
        margin: 0;
        text-align: right;
    }

.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

.text-danger {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    text-align: right;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-container {
        padding: 20px;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}


/* أنماط واجهة الكتب الرسمية */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

    .page-header h1 {
        color: #495057;
        font-size: 1.8rem;
        margin: 0;
        text-align: right;
    }

.page-actions {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width:75px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

    .btn i {
        font-size: 14px;
    }

.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

.data-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .data-table thead {
        background-color: #f8f9fa;
    }

    .data-table th,
    .data-table td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #e9ecef;
    }

    .data-table th {
        font-weight: 600;
        color: #495057;
        background-color: #f8f9fa;
    }

    .data-table tbody tr:hover {
        background-color: #f8f9fa;
    }

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-مسودة {
    background-color: #fff3cd;
    color: #856404;
}

.status-مراجع {
    background-color: #cce5ff;
    color: #004085;
}

.status-معتمد {
    background-color: #d4edda;
    color: #155724;
}

.status-منفذ {
    background-color: #d1ecf1;
    color: #0c5460;
}

.actions-column {
    white-space: nowrap;
    text-align: center;
}

.action-btn {
    padding: 8px;
    border-radius: 5px;
    margin: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-info {
    background-color: #17a2b8;
}

    .btn-info:hover {
        background-color: #138496;
    }

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

    .btn-warning:hover {
        background-color: #e0a800;
    }

.btn-success {
    background-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
    }

.btn-danger {
    background-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #c82333;
    }



/* إضافة هذه الأنماط إلى ملف CSS */
.form-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

    .form-header h1 {
        color: #495057;
        font-size: 1.8rem;
        margin: 0;
        text-align: right;
    }

.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.form-check {
    padding: 15px 0;
}

.form-check-input {
    margin-top: 0.3em;
}

.form-text {
    color: #6c757d;
    font-size: 0.875em;
    margin-top: 5px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

    .btn-success:hover {
        background-color: #218838;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

.btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: white;
    }

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.text-danger {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    text-align: right;
}

.modal-content {
    border-radius: 10px;
}


.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: black;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

    .notification.success {
        background-color: #28a745;
    }

    .notification.error {
        background-color: #dc3545;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.form-control-file {
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

    .form-control-file:hover {
        border-color: #007bff;
    }

.file-preview {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .file-preview img {
        max-width: 100px;
        max-height: 100px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

.file-info {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

    .file-info.error {
        color: #e74c3c;
    }

    .file-info.success {
        color: #27ae60;
    }

.sub-section-hint {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}


.form-control-file {
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

    .form-control-file:hover {
        border-color: #007bff;
    }

.file-preview {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .file-preview img {
        max-width: 100px;
        max-height: 100px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

.file-info {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

    .file-info.error {
        color: #e74c3c;
    }

    .file-info.success {
        color: #27ae60;
    }

.sub-section-hint {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}


.book-row.pending-row {
    background-color: #fff3cd !important;
}

.book-row.approved-row {
    background-color: #d1ecf1 !important;
}

.book-row.signed-row {
    background-color: #d4edda !important;
}

.book-row.rejected-row {
    background-color: #f8d7da !important;
}

.book-reference strong {
    color: #2c3e50;
}

.book-subject strong {
    color: #34495e;
}

.destination-badge {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.creator-info {
    text-align: center;
}

.action-buttons-table {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-stats {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-stat-item {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}


.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .file-upload-area:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
    }

    .file-upload-area.dragover {
        border-color: #28a745;
        background-color: #e8f5e8;
    }

.file-input {
    display: none;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    margin-bottom: 1rem;
}

    .stat-card.success {
        background: #28a745;
    }

    .stat-card.warning {
        background: #ffc107;
    }

    .stat-card.danger {
        background: #dc3545;
    }

    .stat-card.info {
        background: #17a2b8;
    }

    .stat-card h3 {
        margin: 1rem 0 0.5rem;
        font-size: 2rem;
    }


.nav-item {
    position: relative;
}

.sub-menu {
    padding-right: 20px;
}

.sub-menu-item {
    margin-bottom: 10px;
}

.sub-menu-header {
    font-weight: bold;
    color: #333;
}

.nested-menu {
    padding-right: 15px;
}

    .nested-menu li {
        margin: 5px 0;
    }



/* تنسيق بطاقات الوظائف */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

.job-header {
    display: flex;
    justify-content: center;
    align-items: start;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.job-badge {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.job-details {
    margin-bottom: 15px;
}

.job-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
}

    .job-detail i {
        margin-left: 8px;
        width: 16px;
        text-align: center;
    }

.job-description {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.job-deadline {
    color: #e74c3c;
    font-size: 0.9em;
}

/* تنسيق بطاقة معلومات الوظيفة */
.job-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

    .job-info-card h4 {
        margin: 0 0 10px 0;
        color: #2c3e50;
    }

.job-info-details {
    display: flex;
    gap: 15px;
}

    .job-info-details span {
        background: #e9ecef;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.9em;
    }

/* تنسيق تفاصيل الطلب */
.application-details-card {
    background: white;
    border-radius: 10px;
    padding: 0;
}

.detail-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

    .detail-section:last-child {
        border-bottom: none;
    }

    .detail-section h4 {
        margin: 0 0 15px 0;
        color: #2c3e50;
        font-size: 1.1em;
    }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

    .detail-item label {
        font-weight: bold;
        color: #666;
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .detail-item span {
        color: #2c3e50;
    }

.detail-actions {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* تنسيق قسم التصفية */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-options {
    display: flex;
    gap: 10px;
}

    .filter-options select {
        min-width: 150px;
    }

/* رسالة عدم وجود وظائف */
.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

    .no-jobs-message i {
        font-size: 3em;
        margin-bottom: 20px;
        color: #bdc3c7;
    }

    .no-jobs-message p {
        font-size: 1.2em;
        margin: 0;
    }

/* تنسيق الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-header {
        flex-direction: column;
    }

    .job-badge {
        align-self: flex-start;
        margin-top: 10px;
    }

    .job-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .filter-section {
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* تنسيق صفحة إضافة وظيفة */
.form-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

    .form-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.form-section-title {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

    .form-section-title i {
        margin-left: 10px;
        color: #3498db;
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 8px;
        display: block;
    }

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1em;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.form-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    min-height: 20px;
}

.form-text {
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1em;
}

/* تنسيق صفحة إدارة الوظائف */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9em;
}

    .breadcrumb a {
        color: #3498db;
        text-decoration: none;
    }

    .breadcrumb span {
        color: #999;
    }

.search-stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 80px;
}

    .stat-badge.active {
        background: #e8f5e8;
        border: 1px solid #27ae60;
    }

    .stat-badge.inactive {
        background: #f8f9fa;
        border: 1px solid #6c757d;
    }

    .stat-badge.expired {
        background: #ffeaea;
        border: 1px solid #e74c3c;
    }

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
}

.stat-badge.active .stat-number {
    color: #27ae60;
}

.stat-badge.inactive .stat-number {
    color: #6c757d;
}

.stat-badge.expired .stat-number {
    color: #e74c3c;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
}

.jobs-management-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .jobs-management-table th {
        background: #f8f9fa;
        padding: 15px;
        font-weight: bold;
        color: #2c3e50;
        border-bottom: 2px solid #dee2e6;
    }

    .jobs-management-table td {
        padding: 15px;
        vertical-align: middle;
        border-bottom: 1px solid #dee2e6;
    }

.job-title-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.remote-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    align-self: flex-start;
}

.deadline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.positions-count, .applications-count {
    font-weight: bold;
    font-size: 1.1em;
}

.status-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check.form-switch {
    margin: 0;
}

.applications-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 0.7em;
    margin-right: 5px;
}

.action-buttons-table {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.no-data-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

    .no-data-message i {
        margin-bottom: 20px;
        color: #bdc3c7;
    }

    .no-data-message p {
        margin-bottom: 20px;
        font-size: 1.1em;
    }

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* تنسيق الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .search-stats-section {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-stats {
        justify-content: center;
    }

    .action-buttons-table {
        flex-direction: column;
    }

    .jobs-management-table {
        font-size: 0.9em;
    }

        .jobs-management-table th,
        .jobs-management-table td {
            padding: 10px 5px;
        }
}


/* تنسيق معلومات الوظيفة السريعة */
.job-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
}

.info-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.info-content p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* تنسيق نافذة تأكيد الحذف */
#deleteConfirmationModal .modal-content {
    background: white;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.modal-header {
    background: #e74c3c;
    color: white;
    padding: 20px;
    text-align: center;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.3em;
    }

.modal-body {
    padding: 30px;
}

.warning-message {
    text-align: center;
}

    .warning-message i {
        font-size: 3em;
        color: #e74c3c;
        margin-bottom: 15px;
    }

    .warning-message h4 {
        color: #e74c3c;
        margin-bottom: 15px;
    }

    .warning-message p {
        margin-bottom: 10px;
        line-height: 1.6;
    }

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* تنسيق حقق النماذج المحددة مسبقاً */
.form-control:not([type="checkbox"]):not([type="radio"]) {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1em;
    transition: all 0.3s ease;
}

    .form-control:not([type="checkbox"]):not([type="radio"]):focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* تنسيق أزرار الإجراءات */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1em;
    min-width: 150px;
}

/* تنسيق الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .job-quick-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-lg {
        min-width: auto;
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* تنسيق النصوص في textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* تنسيق العناوين */
.section-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 10px;
}

    .section-title i {
        margin-left: 10px;
        color: #3498db;
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

    .breadcrumb a {
        color: #3498db;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .breadcrumb a:hover {
            color: #2980b9;
            text-decoration: underline;
        }

    .breadcrumb span {
        color: #999;
    }


.table th {
    vertical-align: middle;
    text-align: center;
}

.table td {
    vertical-align: middle;
}

.debit-cell {
    background-color: #f0fff0 !important;
    color: #2e7d32;
    font-weight: bold;
}

.credit-cell {
    background-color: #fff0f0 !important;
    color: #c62828;
    font-weight: bold;
}
.info-box-content {
    background-color: #fff !important;
    color: #333;
    font-weight: bold;
}

/* تنسيقات المودال */
.modal-xl {
    max-width: 90%;
}
.info-box-icon fas fa-receipt {
    background-color: red;
}

/* تأثيرات التحميل */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* تنسيق الجدول في المودال */
.modal-body .table th {
    background-color: #2c3e50;
    color: white;
}

.modal-body .table td {
    vertical-align: middle;
}



/* تحسينات عامة للواجهة */
.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
    border-radius: 0.35rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
}

.btn {
    border-radius: 0.35rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
}

    .form-control:focus, .form-select:focus {
        border-color: #bac8f3;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    }

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}


.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .page-header h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .page-header .lead {
        margin: 5px 0 0 0;
        opacity: 0.9;
        font-size: 14px;
    }

.filter-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.organizational-chart-container {
    min-height: 500px;
    margin-bottom: 20px;
}

.parent-departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.department-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

    .department-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        border-color: #007bff;
    }

    .department-card.parent-department {
        border-left: 4px solid #007bff;
    }

    .department-card.child-department {
        border-left: 4px solid #28a745;
    }

.department-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #dee2e6;
}

.department-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .department-icon.child {
        background: #28a745;
    }

.department-title {
    flex: 1;
}

    .department-title h4 {
        margin: 0 0 5px 0;
        color: #2c3e50;
        font-size: 16px;
        font-weight: 700;
    }

.department-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #007bff;
    color: white;
}

    .department-badge.child {
        background: #28a745;
    }

.department-actions {
    display: flex;
    gap: 5px;
}

    .department-actions .btn {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

.department-info {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6c757d;
}

    .info-item i {
        width: 20px;
        color: #007bff;
    }

    .info-item:last-child {
        margin-bottom: 0;
    }

.department-description {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

    .department-description p {
        margin: 0;
        font-size: 13px;
        color: #6c757d;
        line-height: 1.5;
    }

.department-stats {
    padding: 15px;
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.children-container {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px dashed #dee2e6;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    margin-bottom: 20px;
    color: #6c757d;
}

.overall-stats {
    margin-top: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e9ecef;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 13px;
}

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: white;
    color:black;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

    .notification.error {
        border-left-color: #dc3545;
    }

    .notification.warning {
        border-left-color: #ffc107;
    }

    .notification.info {
        border-left-color: #17a2b8;
    }

    .notification i {
        font-size: 16px;
    }

    .notification.success i {
        color: #28a745;
    }

    .notification.error i {
        color: #dc3545;
    }

    .notification.warning i {
        color: #ffc107;
    }

    .notification.info i {
        color: #17a2b8;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .parent-departments-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .department-header {
        flex-wrap: wrap;
    }

    .department-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 15px;
    }

        .page-header h1 {
            font-size: 20px;
        }

    .filter-section .float-right {
        float: none !important;
        margin-top: 10px;
    }

    .btn-group {
        width: 100%;
    }

        .btn-group .btn {
            flex: 1;
        }
}

@media (max-width: 480px) {
    .department-card {
        margin: 0 10px;
    }

    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}




/* نظام الإشعارات */
.notification-system {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 18px 25px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.4s ease-out, fadeOut 0.5s ease-in 4.5s;
    animation-fill-mode: forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-right: 4px solid #1B5E20;
}

    .notification::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, #1B5E20, #4CAF50);
    }

.notification-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-right-color: #1B5E20;
}

.notification-error {
    background: linear-gradient(135deg, #F44336, #C62828);
    border-right-color: #B71C1C;
}

.notification-warning {
    background: linear-gradient(135deg, #FF9800, #EF6C00);
    border-right-color: #E65100;
}

.notification-info {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    border-right-color: #0D47A1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.notification-icon {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 3px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
}

.notification-message {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-right: -5px;
}

    .notification-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    animation: progressBar 5s linear;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* تأثيرات إضافية */
.notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

/* للإشعارات المهمة */
.notification-important {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* تحسين للجوّال */
@media (max-width: 768px) {
    .notification-system {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        padding: 15px 20px;
    }
}


/* book-notifications.css */
.notification-badge {
    position: absolute;
    top: -5px;
    left: 5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
}

.has-book-notification {
    position: relative;
}

/* ألوان البادجات */
.need-response-badge {
    background-color: #ffa502;
}

.overdue-badge {
    background-color: #ff4757;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* تنبيهات الشريط الجانبي */
.book-alert-sidebar {
    background: linear-gradient(135deg, #ff9f43 0%, #ff793f 100%);
    color: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    animation: slideInRight 0.5s ease;
}

    .book-alert-sidebar h5 {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* تنسيق التنبيهات في الجدول */
.book-overdue-row {
    background-color: #fff9e6 !important;
    border-left: 4px solid #ffa502;
}

.book-critical-row {
    background-color: #ffeaea !important;
    border-left: 4px solid #ff4757;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}


/* أضف إلى CSS الموجود */

.book-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.urgent-badge {
    background-color: #dc3545 !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.book-notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

    .book-notification-item.urgent {
        background-color: #fff5f5;
        border-right: 3px solid #dc3545;
    }

    .book-notification-item.warning {
        background-color: #fff9e6;
        border-right: 3px solid #ffc107;
    }


.nav-item-with-badge {
    position: relative;
}

.book-notification-badge {
    position: absolute;
    top: 10px;
    right: 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* التصميم الشفاف */
.transparent-badge {
    background-color: rgba(255, 59, 48, 0.7); /* أحمر شفاف */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px); /* تأثير ضبابي للشفافية */
    -webkit-backdrop-filter: blur(5px);
}

    /* أو يمكنك استخدام هذه البدائل للشفافية */

    /* خيار 1: شفاف بدرجة أعلى */
    /*.transparent-badge.alternative-1 {
        background-color: rgba(220, 53, 69, 0.5);
        color: white;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    }*/

    /* خيار 2: تصميم زجاجي */
    /*.transparent-badge.glass-effect {
        background: rgba(255, 59, 48, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }*/

    /* خيار 3: شبه شفاف */
    /*.transparent-badge.semi-transparent {
        background-color: rgba(255, 59, 48, 0.8);
        color: white;
        border: none;
    }*/



/* تصميم أزرار الفلترة */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .filter-btn:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        transform: translateY(-1px);
    }

    .filter-btn.active {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

    .filter-btn .count {
        background: rgba(255,255,255,0.2);
        padding: 2px 6px;
        border-radius: 12px;
        font-size: 12px;
        margin-right: 4px;
    }

    .filter-btn:not(.active) .count {
        background: #f8f9fa;
        color: #6c757d;
    }

/* فلترة متقدمة */
.advanced-filter {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: none;
}

    .advanced-filter.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

    .filter-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #495057;
        font-size: 14px;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 14px;
    }

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* تصفية متقدمة زر */
.toggle-advanced {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    transition: color 0.3s ease;
}

    .toggle-advanced:hover {
        color: #0d6efd;
    }

/* حقل البحث */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

    .search-container .search-input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 1px solid #ced4da;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .search-container .search-input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
            outline: none;
        }

    .search-container .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

/* رسائل الفلترة */
.filter-message {
    padding: 15px;
    margin: 15px 0;
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    color: #084298;
    display: flex;
    align-items: center;
    gap: 10px;
    display: none;
}

    .filter-message.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .filter-message .clear-filter {
        margin-right: auto;
        background: #0d6efd;
        color: white;
        border: none;
        padding: 5px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.3s ease;
    }

        .filter-message .clear-filter:hover {
            background: #0b5ed7;
        }

/* تخصيص الصفوف حسب الفلترة */
tr.book-overdue-row {
    background-color: #333 !important;
    border-right: 3px solid #ffc107;
}

    tr.book-overdue-row:hover {
        background-color: #322 !important;
    }

tr.book-critical-row {
    background-color: #311 !important;
    border-right: 3px solid #dc3545;
    animation: pulse 2s infinite;
    animation-timing-function: ease-in-out;
}

    tr.book-critical-row:hover {
        background-color: #300 !important;
    }

/* إخفاء الصفوف أثناء الفلترة */
tr.hidden {
    display: none;
}

/* مؤشر التحميل */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

    .loading-indicator.show {
        display: block;
    }

    .loading-indicator .spinner {
        border: 3px solid #f3f3f3;
        border-top: 3px solid #0d6efd;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: 0 auto 10px;
    }

/* تأثيرات الرسوم المتحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .action-buttons-table {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* تحسينات الجدول */
.specializations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

    .specializations-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .specializations-table th {
        padding: 15px;
        text-align: right;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
    }

    .specializations-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dee2e6;
        transition: background-color 0.3s ease;
        color: #ffe;
    }

    .specializations-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .specializations-table tbody tr:last-child td {
        border-bottom: none;
        color: #ffe;
    }

/* تحسينات البادجات */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* إحصائيات الفلترة */
.filter-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

    .filter-stats .filtered-count {
        font-weight: 600;
        color: #0d6efd;
    }

    .filter-stats .total-count {
        font-weight: 600;
        color: #28a745;
    }

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .filter-btn:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        transform: translateY(-1px);
    }

    .filter-btn.active {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

    .filter-btn .count {
        background: rgba(255,255,255,0.2);
        padding: 2px 6px;
        border-radius: 12px;
        font-size: 12px;
        margin-right: 4px;
    }

    .filter-btn:not(.active) .count {
        background: #f8f9fa;
        color: #6c757d;
    }

/* فلترة متقدمة */
.advanced-filter {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: none;
}

    .advanced-filter.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

    .filter-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #495057;
        font-size: 14px;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 14px;
    }

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* تصفية متقدمة زر */
.toggle-advanced {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    transition: color 0.3s ease;
}

    .toggle-advanced:hover {
        color: #0d6efd;
    }

/* حقل البحث */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

    .search-container .search-input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 1px solid #ced4da;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .search-container .search-input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
            outline: none;
        }

    .search-container .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

/* رسائل الفلترة */
.filter-message {
    padding: 15px;
    margin: 15px 0;
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    color: #084298;
    display: flex;
    align-items: center;
    gap: 10px;
    display: none;
}

    .filter-message.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .filter-message .clear-filter {
        margin-right: auto;
        background: #0d6efd;
        color: white;
        border: none;
        padding: 5px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.3s ease;
    }

        .filter-message .clear-filter:hover {
            background: #0b5ed7;
        }

/* تخصيص الصفوف حسب الفلترة */
tr.book-pending-row {
    background-color: #300 !important;
    border-right: 3px solid #ffc107;
    color: #333
}

    tr.book-pending-row:hover {
        background-color: #311 !important;
        color: #333
    }

tr.book-urgent-row {
    background-color: #322 !important;
    border-right: 3px solid #dc3545;
    animation: pulse 2s infinite;
    animation-timing-function: ease-in-out;
    color: #333
}

    tr.book-urgent-row:hover {
        background-color: #f333 !important;
        color: #333
    }

tr.book-sent-row {
    background-color: #344 !important;
    border-right: 3px solid #198754;
    color: #333
}

    tr.book-sent-row:hover {
        background-color: #355 !important;
        color: #333
    }

/* إخفاء الصفوف أثناء الفلترة */
tr.hidden {
    display: none;
}

/* مؤشر التحميل */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

    .loading-indicator.show {
        display: block;
    }

    .loading-indicator .spinner {
        border: 3px solid #f3f3f3;
        border-top: 3px solid #0d6efd;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: 0 auto 10px;
    }

/* تأثيرات الرسوم المتحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .action-buttons-table {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* تحسينات الجدول */
.specializations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

    .specializations-table thead {
        background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
        color: white;
    }

    .specializations-table th {
        padding: 15px;
        text-align: right;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
    }

    .specializations-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dee2e6;
        transition: background-color 0.3s ease;
    }

    .specializations-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .specializations-table tbody tr:last-child td {
        border-bottom: none;
    }

/* تحسينات البادجات */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* إحصائيات الفلترة */
.filter-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

    .filter-stats .filtered-count {
        font-weight: 600;
        color: #4e54c8;
    }

    .filter-stats .total-count {
        font-weight: 600;
        color: #28a745;
    }

/* زر إرسال مميز */
.btn-send {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-send:hover:not(:disabled) {
        background: linear-gradient(135deg, #3e43a8 0%, #7b80eb 100%);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(78, 84, 200, 0.3);
    }

    .btn-send:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

