﻿/*===================================================
Project: نيكسيون فيجن | عالم النسور للبرمجيات  
Version: 1.0.0
style.css
====================================================*/

/* start global classes */
:root {
    /* body bg color */
    --bodyColor: #f8f6f4;
    /* box bg color */
    --boxColor: #eff0ef;
    /* dark brand color */
    --dark-brand-color: #202020;
    /* brand color */
    /* brand color */
    --brand-color: #21c68b;
    /* Primary Text Color */
    --primaryColor: #404742;
    /* title 2 Color (subtitle-color) */
    --title-2-color: #292836;
    /* Secondary Text Color */
    --secendaryColor: #5e5e5e;
    /* border radius */
    --border-radius: 5px;
    /* highlight color */
    --highlight-color: #ff9800;
    /* forbidden color */
    --forbidden-color: #d32f2f;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--primaryColor);
    background-color: var(--bodyColor);
    text-align: left;
    text-transform: capitalize;
    position: relative;
    overflow-x: hidden;
}

    body.home-rtl {
        font-family: "Tajawal", sans-serif;
    }

    /* ========== srart dark-mode colors ============ */

    body.dark-mode {
        --bodyColor: #202020;
        /* box bg color */
        --boxColor: #1e1e1e;
        /* Primary Text Color */
        --primaryColor: #e4e6e4;
        /* brand color */
        --brand-color: #21c68b;
        /* Secondary Text Color */
        --secendaryColor: #bcbcbc;
        /* title 2 Color (subtitle-color) */
        --title-2-color: #ebebeb;
    }

/* ========== end dark-mode colors ============ */


.sub-title {
    padding-left: 20px; /* Align list items for better readability */
    direction: rtl; /* تأكيد اتجاه النص في القائمة المرتبة */
    text-align: right; /* محاذاة النص إلى اليمين */
}

.switch-button {
    border-radius: 50%;
    border: none;
    outline: none;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    border: 0.5px solid var(--brand-color);
}

.btn-light-mode {
    background-color: var(--boxColor);
    color: var(--primaryColor);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::selection {
    color: var(--bodyColor);
    background-color: var(--brand-color);
}

.title {
    color: var(--primaryColor);
    font-size: 40px;
    font-weight: bold;
    position: relative;
    text-transform: capitalize;
    padding-left: 20px; /* Align list items for better readability */
    text-align: end; /* محاذاة النص إلى اليمين */
}

.title-2 {
    color: var(--title-2-color);
    font-size: 26px;
    font-weight: bold;
    position: relative;
    text-transform: capitalize;
    padding-top: 20px;
}

.title-3 {
    color: var(--title-2-color);
    font-size: 20px;
    font-weight: bold;
    position: relative;
    text-transform: capitalize;
}

.title-4 {
    color: var(--title-2-color);
    font-size: 16px;
    position: relative;
    text-transform: capitalize;
}


.pretitle {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    color: var(--brand-color);
}

.unique-text {
    color: var(--brand-color);
    direction: rtl !important;
    text-align: right !important;
}

.unique-text-Bold {
    color: var(--primaryColor);
    direction: rtl !important;
    text-align: right !important;
    font-weight: bold;
}



/* تأثير التوهج للنص الإيجابي في الوضع النهاري */
@keyframes glowing-day2 {
    0% {
        color: var(--brand-color);
        text-shadow: 0 0 5px rgba(33, 198, 139, 0.5);
    }

    50% {
        color: var(--primaryColor); /* استخدام لون النص الأساسي للوضع النهاري */
        text-shadow: 0 0 20px rgba(33, 198, 139, 0.8), 0 0 30px rgba(33, 198, 139, 0.8);
    }

    100% {
        color: var(--brand-color);
        text-shadow: 0 0 5px rgba(33, 198, 139, 0.5);
    }
}

/* تأثير التوهج للنص الإيجابي في الوضع الليلي */
@keyframes glowing-night2 {
    0% {
        color: var(--brand-color);
        text-shadow: 0 0 5px rgba(33, 198, 139, 0.5);
    }

    50% {
        color: #fff;
        text-shadow: 0 0 20px rgba(33, 198, 139, 1), 0 0 30px rgba(33, 198, 139, 1);
    }

    100% {
        color: var(--brand-color);
        text-shadow: 0 0 5px rgba(33, 198, 139, 0.5);
    }
}

/* استخدام تأثير توهج مختلف بناءً على الوضع (نهاري أو ليلي) */
body:not(.dark-mode) .unique-text-alert2 {
    color: var(--brand-color);
    font-weight: bold;
    animation: glowing-day2 2s infinite;
}

body.dark-mode .unique-text-alert2 {
    color: var(--brand-color);
    font-weight: bold;
    animation: glowing-night2 2s infinite;
}

.unique-text-alert2 a {
    color: var(--brand-color); /* استخدم هنا نفس لون النص داخل unique-text-alert */
    text-decoration: none; /* لإزالة التسطير الافتراضي */
}

    .unique-text-alert2 a:hover {
        color: var(--brand-color); /* تأكد من أن اللون لا يتغير عند التحويم */
        text-decoration: none; /* لإزالة التسطير عند التحويم أيضًا */
    }

.unique-text-alert a {
    color: var(--forbidden-color); /* استخدم هنا نفس لون النص داخل unique-text-alert */
    text-decoration: none; /* لإزالة التسطير الافتراضي */
}

    .unique-text-alert a:hover {
        color: var(--forbidden-color); /* تأكد من أن اللون لا يتغير عند التحويم */
        text-decoration: none; /* لإزالة التسطير عند التحويم أيضًا */
    }

/* تأثير التوهج للنص الإيجابي في الوضع النهاري */
@keyframes glowing-day {
    0% {
        color: var(--forbidden-color);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }

    50% {
        color: var(--primaryColor); /* استخدام لون النص الأساسي للوضع النهاري */
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.8);
    }

    100% {
        color: var(--forbidden-color);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
}

/* تأثير التوهج للنص الإيجابي في الوضع الليلي */
@keyframes glowing-night {
    0% {
        color: var(--forbidden-color);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }

    50% {
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 30px rgba(255, 0, 0, 1);
    }

    100% {
        color: var(--forbidden-color);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
}

/* استخدام تأثير توهج مختلف بناءً على الوضع (نهاري أو ليلي) */
body:not(.dark-mode) .unique-text-alert {
    color: var(--forbidden-color);
    font-weight: bold;
    animation: glowing-day 2s infinite;
}

body.dark-mode .unique-text-alert {
    color: var(--forbidden-color);
    font-weight: bold;
    animation: glowing-night 2s infinite;
}


.home-2 .heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

body.home-rtl .heading {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: end;
    text-align: end;
}

    body.home-rtl .heading > * {
        justify-self: end;
        text-align: start;
        direction: rtl;
    }

a,
a:hover,
a:focus {
    text-decoration: none;
}

.box {
    background-color: var(--boxColor);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
    height: 100%;
    z-index: 1;
    transition: color 300ms ease-in-out;
}

    .box.box-hover::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        background-color: var(--brand-color);
        transition: transform 400ms ease-in-out;
        transform: scaleX(0);
        transform-origin: right;
        color: #f3f3f3;
        border-radius: var(--border-radius);
    }



    .box.box-hover:hover:before,
    .box.box-hover:focus:before {
        transform: scaleX(1);
    }

    .box.box-hover:hover,
    .box.box-hover:focus,
    .box.box-hover:hover a i,
    .box.box-hover:hover .box-icon i,
    .box.box-hover:hover > * {
        color: #f9f9f9;
    }

        .box.box-hover:hover > p {
            color: #def3de;
        }

.home-rtl .box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* start buttons style */
.btn,
.btn-sec {
    border: 1px solid var(--brand-color);
    background: var(--brand-color);
    color: var(--bodyColor);
    font-weight: 800;
    border-radius: 40px;
    padding: 8px 25px;
    font-size: 20px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    text-transform: capitalize;
    align-items: center;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
    font-weight: bold;
    transition: 0.8s all ease;
    cursor: pointer;
    z-index: 1;
}

.btn-sec {
    background-color: var(--boxColor);
    border: 1px solid var(--brand-color);
    color: var(--primaryColor);
}

    .btn-sec:hover {
        color: var(--bodyColor);
    }

    .btn::before,
    .btn-sec::before {
        background: var(--boxColor);
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
        transition: all 0.6s ease;
        width: 100%;
        height: 0%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .btn-sec::before {
        background: var(--brand-color);
    }

    .btn:hover::before,
    .btn-sec:hover::before {
        height: 380%;
    }


.learn-more {
    text-transform: capitalize;
    color: var(--brand-color);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
}

    .learn-more .bi {
        font-size: 25px;
    }

/* end main button style */

@media (max-width: 768px) {
    .btn {
        padding: 6px 18px;
        font-size: 16px;
    }

    .title {
        font-size: 35px;
    }

    .title-2 {
        font-size: 20px;
    }

    .pretitle {
        font-size: 14px;
    }

    p {
        font-size: 14;
        line-height: 28;
    }
}

p {
    color: var(--secendaryColor);
    font-size: 16px;
    line-height: 32px;
    font-weight: 400;
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

/* ====== start breadcrumbs style========= */

.breadcrumbs {
    background: var(--boxColor);
    min-height: 40px;
    margin-top: 82px;
    color: var(--bodyColor);
}

@media (max-width: 992px) {
    .breadcrumbs {
        margin-top: 57px;
    }
}


.breadcrumbs .container {
    text-align: end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}




.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 0 10px 0;
    margin: 0;
    text-transform: uppercase;
    direction: rtl;
}

.breadcrumbs h2 {
    /*color: #eaf0ec;*/
}

.breadcrumbs ol a {
    color: var(--primaryColor);
    transition: 0.3s;
}

.breadcrumbs p {
    color: #b6b6b6;
    font-size: 16px;
    direction: ltr;
    text-align: end;
}

.breadcrumbs ol a:hover {
    color: var(--brand-color);
}

.breadcrumbs ol li + li {
    /*padding-left: 10px;*/
    color: var(--primaryColor);
    direction: rtl;
}

    .breadcrumbs ol li + li::before {
        /*display: inline-block;*/
        padding-right: 5px;
        padding-left: 5px; /* Add this line to create space after the slash */
        color: var(--primaryColor);
        content: "/";
    }

/* ====== end breadcrumbs style ========= */

/* ====== Start Privacy Style ====== */

.privacy {
    min-height: 40px;
    margin-top: 82px;
    padding: 20px; /* Add padding for better content spacing */
    border-radius: 8px; /* Slight border radius for smoother edges */
}

@media (max-width: 992px) {
    .privacy {
        margin-top: 57px;
        padding: 15px; /* Adjust padding for smaller screens */
    }
}

.privacy .container {
    text-align: end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    margin: auto; /* Center the container */
}

.privacy h1 {
    font-size: 2em; /* Adjust font size for main title */
    margin-bottom: 10px;
}

.privacy h2 {
    font-size: 1.5em; /* Slightly smaller than the main title */
    margin-top: 30px;
    margin-bottom: 10px;
}

.privacy p {
    font-size: 16px;
    line-height: 1.6; /* Improved line height for readability */
    direction: rtl; /* تحديد اتجاه النص من اليمين إلى اليسار */
    text-align: right; /* محاذاة النص إلى اليمين */
    margin-bottom: 15px; /* Add margin to separate paragraphs */
}

.privacy ol {
    padding-left: 20px; /* Align list items for better readability */
    direction: rtl; /* تأكيد اتجاه النص في القائمة المرتبة */
    text-align: right; /* محاذاة النص إلى اليمين */
}




    .privacy ol a {
        color: #f8f6f4;
        transition: color 0.3s;
    }

        .privacy ol a:hover {
            color: #fff; /* Lighter color on hover for better contrast */
        }

    .privacy ol li + li {
        padding-left: 10px;
        color: #f9f9f9;
    }

        .privacy ol li + li::before {
            display: inline-block;
            padding-right: 10px;
            padding-left: 10px;
            color: #f8f6f4;
            content: "/";
        }

.privacy ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0; /* Align list items with the rest of the text */
    direction: rtl; /* تحديد اتجاه النص من اليمين إلى اليسار */
    text-align: right; /* محاذاة النص إلى اليمين */
}

    .privacy ul li {
        margin-bottom: 10px; /* Add space between list items */
        padding-right: 20px; /* Adjust padding to make space for the dash */
        position: relative;
    }

        .privacy ul li::before {
            content: "–"; /* Use a dash instead of a bullet for list items */
            position: absolute;
            right: 0; /* Position the dash on the right to appear at the beginning of the line */
            color: #f8f6f4;
        }


/* ====== End Privacy Style ====== */

/* end global classes */

/* ==== start  preloader style  ===== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--bodyColor);
    z-index: 9999;
}

svg {
    width: 300px;
    visibility: hidden;
}

/* ==== end  preloader style  ===== */

/* ======== start scroll-to-top button style  =========== */

#progress {
    position: fixed;
    bottom: 20px;
    right: 10px;
    height: 70px;
    width: 70px;
    display: none;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 800;
}

#progress-value {
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    border-radius: 50%;
    display: grid;
    background-color: var(--bodyColor);
    place-items: center;
    font-size: 35px;
    color: var(--brand-color);
}

/* ======== end scroll-to-top button style  =========== */

/*================== start navbar section ==================*/
.navbar {
    z-index: 900;
}

.navbar-toggler,
.navbar-toggler:active,
.navbar-toggler:focus {
    border: none;
}


@media (max-width: 992px) {
    .navbar-collapse {
        direction: rtl;
    }

    .navbar-nav {
        text-align: right;
    }
}


@media (max-width: 990px) {
    .navbar {
        background-color: var(--boxColor);
    }

    .home-rtl .navbar #navbar {
        display: flex;
        flex-direction: column !important;
    }
}

.navbar #menu {
    color: var(--title-2-color);
    font-size: 30px;
}

.navbar .logo {
    width: 5rem;
    max-width: 60px;
    max-height: 60px;
}

.navbar .logo-container {
    position: relative;
    display: inline-block;
}



.navbar.sticky {
    background-color: var(--boxColor);
    transition: 1s;
}

.navbar ul li a:focus {
    background-color: transparent;
}

.navbar ul li a {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--secendaryColor) !important;
}

    .navbar ul li a:hover,
    .navbar ul li a.active {
        color: var(--brand-color) !important;
    }

.navbar .dropdown-menu {
    background-color: var(--boxColor) !important;
}

    .navbar .dropdown-menu .dropdown-item {
        color: var(--title-2-color);
        background-color: var(--boxColor);
    }

/*================== End navbar section ==================*/

/*================== start hero section ==================*/
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
}

.error-message {
    color: var(--forbidden-color);
    font-size: 0.8em;
    margin-top: 4px;
    margin-bottom: 4px;
    display: none;
}

.home-3 .hero {
    min-height: 150vh !important;
}

@media (max-width: 990px) {
    .home-1 .hero,
    .home-3 .hero,
    .home-rtl {
        margin-top: 80px;
    }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#content {
    position: relative;
    z-index: 1;
}

.hero .hero-text .title {
    line-height: 65px;
    font-size: 52px;
}

.hero .hero-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    background-color: var(--boxColor);
}

    .hero .hero-icons a:hover {
        background-color: var(--brand-color);
    }

        .hero .hero-icons a:hover > i {
            color: var(--boxColor);
        }

.hero .hero-icons i {
    font-size: 20px;
    color: var(--secendaryColor);
    cursor: pointer;
}

@media (max-width: 990px) {
    .hero .hero-text .title {
        line-height: 65px;
        font-size: 44px;
    }
}

/* home 3 */
.home-3 .hero .hero-text .title {
    font-size: 50px;
    line-height: 65px;
}

.home-3 .hero .hero-text .icons .icon {
    background-color: var(--brand-color);
    color: var(--body-color);
    border-radius: 50%;
    margin-inline: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-3 .hero .hero-text .icons i {
    font-size: 20px;
}

.home-3 .hero .hero-images .hero-img {
    height: 500px;
}

    .home-3 .hero .hero-images .hero-img img {
        border-radius: var(--border-radius);
        object-fit: cover;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }

.home-3 .hero .hero-numbers .box-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .home-3 .hero .hero-numbers .box-number h2 {
        font-size: 55px;
        color: var(--brand-color);
        font-weight: bold;
        text-align: center;
    }

    .home-3 .hero .hero-numbers .box-number h6 {
        color: var(--secendaryColor);
        font-size: 18px;
        font-weight: 400;
    }


.btn-main:hover {
    background-color: #19a56b;
}

.hero-img {
    border-radius: 20px; /* تنعيم زوايا الصورة */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* إضافة ظل للصورة */
    transition: transform 0.4s ease;
}

    .hero-img:hover {
        transform: scale(1.05); /* تكبير الصورة قليلاً عند المرور فوقها */
    }

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .unique-text {
        color: var(--brand-color);
        /*font-size: 1.5rem;*/
    }

    .btn-main {
        padding: 10px 20px;
    }
}

/*================== end hero section =====================*/
/*============== Start About section ==========*/
.about .box .title-2 {
    text-transform: capitalize;
    font-size: 18px;
}

.about-title {
    color: var(--primaryColor);
    font-size: 40px;
    font-weight: bold;
    position: relative;
    text-transform: capitalize;
    padding-left: -20px; /* Align list items for better readability */
    text-align: end; /* محاذاة النص إلى اليمين */
}

.about .box {
    display: flex;
    flex-direction: row-reverse; /* الأيقونة على اليمين والنص على اليسار */
    align-items: center !important; /* توسيط العناصر عموديًا */
    padding: 10px;
    direction: rtl;
    text-align: right;
}

    .about .box i {
        font-size: 35px;
        color: var(--brand-color);
    }

.about .title-2 {
    text-align: right;
    margin-right: 0; /* إزالة المسافات غير الضرورية على اليمين */
    font-size: 18px;
    margin-left: 10px; /* يمكن تعديل المسافة حسب الحاجة */
}



.about .bars {
    margin: 0;
    padding: 0;
}

@keyframes load {
    from {
        width: 0%;
    }
}

@-webkit-keyframes load {
    from {
        width: 0%;
    }
}

@-o-keyframes load {
    from {
        width: 0%;
    }
}

@-moz-keyframes load {
    from {
        width: 0%;
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--boxColor);
    border-radius: 5px;
    overflow: hidden;
    direction: rtl;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--brand-color);
    border-radius: 5px;
    transition: width 0.2s ease-in-out;
    animation: load 3s 0s;
    -webkit-animation: load 3s 0s;
    -moz-animation: load 3s 0s;
    -o-animation: load 3s 0s;
}

    .progress-bar-fill.progress-bar-fill-1 {
        width: 95%;
    }

    .progress-bar-fill.progress-bar-fill-2 {
        width: 80%;
    }

    .progress-bar-fill.progress-bar-fill-3 {
        width: 85%;
    }

.home-rtl .about .box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: end;
}

/*============== End About section ==========*/

/*============== Start Services section ==========*/
.box-service .box-icon i {
    color: var(--brand-color);
    font-size: 4rem;
}

.home-2 .box-service {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-rtl .box-service {
    text-align: end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

body.home-rtl .box-service > * {
    justify-self: end;
    text-align: start;
    direction: rtl;
}



.services .box-service a {
    display: flex;
    align-items: baseline;
}

    .services .box-service a i {
        font-size: 18px;
        margin: 0 5px;
    }

/*============== Start single-service section ==========*/
.single-service {
    min-height: 100vh;
    margin-top: 6rem;
}

.service-side {
    height: fit-content;
}

    .service-side .social .icon {
        width: 40px;
        height: 40px;
        border-radius: var(--border-radius);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--brand-color);
    }

        .service-side .social .icon i {
            font-size: 18px;
            color: var(--bodyColor);
        }

.single-service .service-box {
    height: fit-content;
}

    .single-service .service-box h3 {
        font-size: 16px;
    }

    .single-service .service-box p {
        line-height: 26px;
        font-size: 14px;
    }

    .single-service .service-box i {
        font-size: 35px;
        color: var(--brand-color);
    }

/*============== End single-service section ==========*/
/*============== End Services section ==========*/

/*============== Start Why us section ==========*/
.why-choose-us .box h1 {
    font-size: 50px;
    color: var(--brand-color);
    font-weight: bold;
}

/*============== End Why us section ==========*/

/*============== Start portfolio section ==========*/

.portfolio-btn {
    text-transform: capitalize;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--secendaryColor);
    border: none;
    background-color: var(--bodyColor);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.portfolio ul {
    margin: 0 !important;
    padding: 1rem 0 !important;
}

@media screen and (max-width: 768px) {
    .portfolio ul li a {
        font-size: 17px;
    }
}

.portfolio .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.5s;
}

    .portfolio .img-overlay .content {
        padding: 1.5rem;
        width: 100%;
        color: #c9e8d2;
    }

        .portfolio .img-overlay .content h3,
        .portfolio .img-overlay .content h6 {
            color: #f9f9f9;
        }

    .portfolio .img-overlay > * {
        transform: translateY(40px);
        transition: transform 25ms;
    }

    .portfolio .img-overlay:hover > * {
        transform: translateY(0);
    }

    .portfolio .img-overlay:hover {
        opacity: 1;
    }

    .portfolio .img-overlay h3 {
        font-size: 25px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .portfolio .img-overlay h4 {
        padding: 7px 10px;
        color: var(--brand-color);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #c4c0e6;
        cursor: pointer;
    }

    .portfolio .img-overlay .tags span {
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        color: #21c68b;
        margin: 0 0.5rem;
    }

.portfolio-btn .active,
.portfolio-btn:hover {
    color: var(--brand-color) !important;
}

.portfolio-item {
    transition: ease-in-out 50ms;
    position: relative;
}

.client-side {
    height: fit-content;
}

    .client-side .box .icon {
        flex: 0.25;
    }

        .client-side .box .icon i {
            font-size: 45px;
            color: var(--brand-color);
        }

    .client-side .box .text {
        flex: 0.75;
    }

        .client-side .box .text h3 {
            color: var(--primaryColor);
            margin: 0;
            font-size: 18px;
        }

    .client-side .social .icon {
        width: 40px;
        height: 40px;
        border-radius: var(--border-radius);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--brand-color);
    }

        .client-side .social .icon i {
            font-size: 18px;
            color: var(--bodyColor);
        }

/*============== End portfolio section ==========*/

/*============== start clients section ==========*/

.clients {
    background-color: var(--boxColor);
}

    .clients img {
        filter: grayscale(100%);
    }

        .clients img:hover {
            filter: grayscale(0);
        }

/*============== End clients section ==========*/

/*============== Start numbers section ==========*/

.counter-up {
    padding: 60px 0;
    background-color: var(--boxColor);
    color: var(--primaryColor);
    text-align: center;
}

.home-3 .counter-up {
    background-color: transparent;
}

.counter-up .counter {
    font-size: 50px;
    font-weight: bold;
    color: var(--brand-color);
}

.counter-up .title-2 {
    color: var(--primaryColor);
}

.counter-up i {
    font-size: 50px;
    color: var(--brand-color);
}

/*============== End numbers section ==========*/

/*============== Start pricing section ==========*/

.pricing .row .box {
    text-align: center;
    align-items: center;
}

#table3 {
    background-color: var(--brand-color);
    color: #f3f3f3;
}

    #table3 > .price {
        color: #f3f3f3;
    }

    #table3 > h3,
    #table3 > ul li,
    #table3 > i {
        color: #d8d8d8;
    }

.pricing .row .box ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#table3 .btn {
    background-color: var(--bodyColor);
    color: var(--brand-color);
}

#table3 ul li .bi-check2-circle {
    color: var(--dark-brand-color);
}

.pricing .row .box .price {
    font-size: 55px;
    font-weight: bold;
    color: var(--brand-color);
}

.pricing .row .box i {
    font-size: 55px;
    color: var(--secendaryColor);
}

.pricing .box ul li .bi {
    font-size: 18px;
    margin-right: 5px;
}

.pricing .box ul li .bi-check2-circle {
    color: var(--brand-color);
}

.pricing .box ul li .bi-x-circle {
    color: #864141;
}

.pricing ul li {
    color: var(--secendaryColor);
    font-size: 20px;
    font-weight: 400;
    text-align: end;
}

.pricing h3 {
    color: var(--secendaryColor);
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.pricing .box .title-2 {
    font-size: 25px;
    text-transform: capitalize;
    font-weight: bold;
}

/*============== End pricing section ==========*/

.testimonials .box {
    display: flex;
    justify-content: space-between;
    text-align: start;
    direction: rtl;
    min-height: 250px; /* يحدد الحد الأدنى لارتفاع الصندوق */
    max-height: 250px; /* يحدد الحد الأدنى لارتفاع الصندوق */
    flex-grow: 1; /* يسمح للصندوق بالنمو إذا كان النص كبيرًا */
}

.testimonials .item {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%; /* يجعل الصناديق تتمدد بشكل متساوٍ */
}

.testimonials .box h1 {
    font-size: 16px; /* تصغير حجم الخط */
    margin: 0;
    padding: 0;
    text-align: right; /* محاذاة النص لليمين */
}

.testimonials .box img {
    order: 2;
    max-width: 100px; /* تحديد حجم أقصى للصورة للحفاظ على الاتساق */
    height: auto;
}

.testimonials .box .flex-column {
    order: 1;
    text-align: right; /* يضمن محاذاة النص لليمين */
    flex-grow: 1; /* يضمن أن النص يمتد لملء المساحة المتاحة */
}


.testimonials-description {
    font-size: 18px;
    color: var(--secendaryColor);
    margin-bottom: 10px;
    max-height: 100px; /* تحديد أقصى ارتفاع */
    text-align: right; /* محاذاة النص إلى اليمين */
    direction: rtl;
}

/*============== start team section ==========*/
.team .box {
    padding: 0;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .team .box .team-img {
        width: 100%;
    }

    .team .box .social-icons i {
        font-size: 1.5rem;
        margin: 0 0.5rem;
        color: var(--secendaryColor);
    }

        .team .box .social-icons i:hover {
            color: var(--brand-color);
        }

/*============== end team section ==========*/

/*============== Start blog section ==========*/

.blog h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--secendaryColor);
}

.home-rtl .blog .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: end;
}

.blog .card i {
    font-size: 17px;
    color: var(--brand-color);
}

.blog .title-2 {
    font-size: 25px;
    line-height: 40px;
}

.blog .card {
    padding: 0 !important;
}

    .blog .card img {
        border-radius: var(--border-radius);
    }

    .blog .card a {
        display: flex;
        align-items: center;
        flex-direction: row;
        color: var(--brand-color);
    }

        .blog .card a i {
            font-size: 18px;
            margin-inline: 5px;
        }

.blog-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

    .blog-nav a {
        margin-inline: 0.5rem;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--boxColor);
        color: var(--title-2-color);
        border-radius: 50%;
    }

        .blog-nav a.active,
        .blog-nav a:hover {
            background-color: var(--brand-color);
        }

/* =========== start blog single page ============ */

.blog .entry {
    padding: 30px;
    margin-bottom: 60px;
}

    .blog .entry .entry-img {
        max-height: 440px;
        margin: -30px -30px 20px -30px;
        overflow: hidden;
    }

    .blog .entry .entry-title {
        font-size: 28px;
        font-weight: bold;
        padding: 0;
        margin: 0 0 20px 0;
    }

        .blog .entry .entry-title a {
            color: var(--title-2-color);
            transition: 0.3s;
        }

    .blog .entry .entry-meta {
        margin-bottom: 15px;
        color: var(--brand-color);
    }

        .blog .entry .entry-meta ul {
            display: flex;
            flex-wrap: wrap;
            list-style: none;
            align-items: center;
            padding: 0;
            margin: 0;
        }

            .blog .entry .entry-meta ul li + li {
                padding-left: 20px;
            }

        .blog .entry .entry-meta i {
            font-size: 16px;
            margin-right: 8px;
            line-height: 0;
        }

        .blog .entry .entry-meta a {
            color: var(--primaryColor);
            font-size: 14px;
            display: inline-block;
            line-height: 1;
        }

    .blog .entry .entry-content p {
        line-height: 24px;
    }

    .blog .entry .entry-content .read-more {
        -moz-text-align-last: right;
        text-align-last: right;
    }

    .blog .entry .entry-content h3 {
        font-size: 22px;
        margin-top: 30px;
        font-weight: bold;
    }

    .blog .entry .entry-footer {
        padding-top: 10px;
        border-top: 1px solid #e6e6e6;
    }

        .blog .entry .entry-footer i {
            color: var(--brand-color);
            display: inline;
        }

        .blog .entry .entry-footer a {
            color: var(--secendaryColor);
            transition: 0.3s;
        }

        .blog .entry .entry-footer .cats {
            list-style: none;
            display: inline;
            padding: 0 20px 0 0;
            font-size: 14px;
        }

            .blog .entry .entry-footer .cats li {
                display: inline-block;
            }

        .blog .entry .entry-footer .tags {
            list-style: none;
            display: inline;
            padding: 0;
            font-size: 14px;
        }

            .blog .entry .entry-footer .tags li {
                display: inline-block;
            }

                .blog .entry .entry-footer .tags li + li::before {
                    padding-right: 6px;
                    color: var(--secendaryColor);
                    content: ",";
                }

        .blog .entry .entry-footer .share {
            font-size: 16px;
        }

            .blog .entry .entry-footer .share i {
                padding-left: 5px;
            }

.blog .entry-single {
    margin-bottom: 30px;
}

.blog .blog-author {
    padding: 20px;
    margin-bottom: 30px;
    background-color: var(--boxColor);
    border-radius: var(--border-radius);
}

    .blog .blog-author img {
        width: 120px;
        margin-right: 20px;
    }

    .blog .blog-author h4 {
        font-weight: 600;
        font-size: 22px;
        margin-bottom: 0px;
        padding: 0;
        color: var(--title-2-color);
    }

    .blog .blog-author .social-links {
        margin: 0 10px 10px 0;
    }

        .blog .blog-author .social-links a {
            color: rgba(1, 41, 112, 0.5);
            margin-right: 5px;
        }

    .blog .blog-author p {
        color: var(--secendaryColor);
    }

.blog .blog-comments {
    margin-bottom: 30px;
}

    .blog .blog-comments .comments-count {
        font-weight: bold;
    }

    .blog .blog-comments .comment {
        margin-top: 30px;
        position: relative;
    }

        .blog .blog-comments .comment .comment-img {
            margin-right: 14px;
        }

            .blog .blog-comments .comment .comment-img img {
                width: 60px;
            }

        .blog .blog-comments .comment h5 {
            font-size: 16px;
            margin-bottom: 2px;
        }

            .blog .blog-comments .comment h5 a {
                font-weight: bold;
                color: var(--title-2-color);
                transition: 0.3s;
            }

            .blog .blog-comments .comment h5 .reply {
                padding-left: 10px;
                color: var(--brand-color);
            }

                .blog .blog-comments .comment h5 .reply i {
                    font-size: 20px;
                }

        .blog .blog-comments .comment time {
            display: block;
            font-size: 14px;
            color: var(--brand-color);
            margin-bottom: 5px;
        }

        .blog .blog-comments .comment.comment-reply {
            padding-left: 40px;
        }

    .blog .blog-comments .reply-form {
        margin-top: 30px;
        padding: 4rem;
    }

        .blog .blog-comments .reply-form h4 {
            font-weight: bold;
            font-size: 22px;
        }

        .blog .blog-comments .reply-form p {
            font-size: 14px;
        }

        .blog .blog-comments .reply-form input {
            border-radius: var(--border-radius);
            outline: none;
            border: none;
            color: var(--title-2-color);
            font-size: 14px;
        }

            .blog .blog-comments .reply-form input:focus {
                background-color: var(--boxColor);
                border: none;
                outline: none;
                box-shadow: none;
            }

        .blog .blog-comments .reply-form textarea {
            box-shadow: none;
            outline: none;
            border: none;
            color: var(--title-2-color);
        }

            .blog .blog-comments .reply-form textarea:focus {
                background-color: var(--boxColor);
            }

        .blog .blog-comments .reply-form .form-group {
            margin-bottom: 1rem;
        }

.blog .sidebar {
    padding: 30px;
    margin: 0 0 60px 20px;
    width: fit-content;
    background-color: var(--boxColor);
}

    .blog .sidebar .sidebar-title {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 15px 0;
        color: var(--brand-color);
        position: relative;
    }

    .blog .sidebar .sidebar-item {
        margin-bottom: 30px;
    }

    .blog .sidebar .search-form {
        background-color: var(--boxColor);
    }

        .blog .sidebar .search-form form {
            background: var(--boxColor);
            border: 1px solid var(--boxColor);
            width: 100%;
            height: 100%;
            position: relative;
        }

            .blog .sidebar .search-form form input[type="text"] {
                border: 0;
                padding: 4px;
                border-radius: 4px;
                width: calc(100% - 40px);
            }

                .blog .sidebar .search-form form input[type="text"]:focus {
                    border: var(--boxColor);
                    outline: none;
                    box-shadow: none;
                }

            .blog .sidebar .search-form form button {
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                border: 0;
                background: none;
                font-size: 16px;
                padding: 0 15px;
                margin: -1px;
                background: var(--brand-color);
                color: var(--bodyColor);
                transition: 0.3s;
                border-radius: 0 4px 4px 0;
                line-height: 0;
            }

                .blog .sidebar .search-form form button i {
                    line-height: 0;
                    color: var(--bodyColor);
                }

    .blog .sidebar .categories ul {
        list-style: none;
        padding: 0;
    }

        .blog .sidebar .categories ul li + li {
            padding-top: 10px;
        }

        .blog .sidebar .categories ul a {
            color: var(--title-2-color);
            transition: 0.3s;
        }

            .blog .sidebar .categories ul a span {
                padding-left: 5px;
                color: var(--secendaryColor);
                font-size: 14px;
            }

    .blog .sidebar .recent-posts .post-item + .post-item {
        margin-top: 15px;
    }

    .blog .sidebar .recent-posts img {
        width: 80px;
        height: 100%;
        float: left;
        border-radius: var(--border-radius);
    }

    .blog .sidebar .recent-posts h4 {
        font-size: 15px;
        margin-left: 95px;
        font-weight: bold;
    }

        .blog .sidebar .recent-posts h4 a {
            color: var(--primaryColor);
            transition: 0.3s;
        }

    .blog .sidebar .recent-posts time {
        display: block;
        margin-left: 95px;
        font-size: 14px;
        color: var(--secendaryColor);
    }

    .blog .sidebar .tags {
        margin-bottom: -10px;
    }

        .blog .sidebar .tags ul {
            list-style: none;
            padding: 0;
        }

            .blog .sidebar .tags ul li {
                display: inline-block;
            }

            .blog .sidebar .tags ul a {
                color: var(--brand-color);
                font-size: 14px;
                padding: 6px 14px;
                margin: 0 6px 8px 0;
                border: 1px solid var(--secendaryColor);
                display: inline-block;
                border-radius: var(--border-radius);
                transition: 0.3s;
            }

/* =========== start blog single page ============ */

/*============== End blog section ==========*/

/*============== start FAQ section ==========*/
.faq .box h4 {
    color: var(--title-2-color);
    font-size: 20px;
    font-weight: 600;
}

.faq .box i {
    font-size: 25px;
    color: var(--brand-color);
}

.rotate-icon {
    transition: transform 0.3s ease-in-out;
}

    .rotate-icon.rotated {
        transform: rotate(180deg);
    }

/*============== End FAQ section ==========*/



/*============== Start contact section ==========*/
.contact form input,
.contact form textarea {
    width: 100%;
    padding: 15px;
    outline: none;
    border: none;
    box-shadow: none;
    background-color: var(--boxColor);
    border-radius: var(--border-radius);
    color: var(--title-2-color);
}

    .contact form input:focus,
    .contact form textarea:focus {
        background-color: var(--boxColor);
        box-shadow: none;
    }

.contact .info i {
    font-size: 30px;
    color: var(--brand-color);
}

.contact .info h5 {
    color: var(--secendaryColor);
    font-size: 20px;
    font-weight: 600;
}

.contact-map {
    width: 100%;
    height: 400px;
    margin-top: 5rem;
}

.toast-success {
    background-color: #0d9700 !important;
    opacity: 1 !important;
}

.toast-error {
    background-color: #8b0500 !important;
    opacity: 1 !important;
}

.toast {
    border-radius: var(--border-radius) !important;
    color: #f9f9f9;
    font-family: "Outfit", sans-serif;
    box-shadow: none !important;
}

/*============== End contact section ==========*/




/* ============== Start New Student section ========== */

/* تحسين القسم بألوان المشروع وتنسيق النص */
.new-student {
    background-color: var(--boxColor); /* استخدام لون خلفية متناسق */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* إضافة ظل خفيف */
    direction: rtl;
    text-align: right;
    margin-top: 2rem;
}

    /* تحسين حقول الإدخال لجعلها متناسقة */
    .new-student form input,
    .new-student form textarea,
    .new-student form select {
        width: 100%;
        padding: 15px;
        border: 2px solid var(--brand-color); /* استخدام ألوان متناسقة للحواف */
        background-color: var(--boxColor);
        border-radius: var(--border-radius);
        color: var(--primaryColor);
        font-family: "Tajawal", sans-serif;
        transition: border-color 0.3s ease, background-color 0.3s ease;
        margin-bottom: 10px;
    }

        .new-student form input:focus,
        .new-student form textarea:focus,
        .new-student form select:focus {
            background-color: var(--bodyColor); /* تغيير لون الخلفية عند التركيز */
            border-color: var(--brand-color); /* تغيير لون الحواف عند التركيز */
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
            outline: none;
        }

    .new-student .container .label,
    label {
        text-align: right;
        font-weight: 500; /* تحسين سمك الخط */
        color: var(--primaryColor); /* لون غامق لنصوص التسميات */
    }


    /* تحسين قوائم التحديد (select) */
    .new-student form select.custom-select-direction {
        padding: 10px;
        background-color: var(--boxColor);
        border: 2px solid var(--brand-color);
        color: var(--primaryColor);
        border-radius: var(--border-radius);
        text-align: right; /* محاذاة النص لليمين */
        direction: rtl;
    }

    /* رسائل التنبيه */
    .new-student .toast-success {
        background-color: #28a745 !important;
        color: #fff;
        border-radius: var(--border-radius);
    }

    .new-student.toast-error {
        background-color: #dc3545 !important;
        color: #fff;
        border-radius: var(--border-radius);
    }

    /* تنسيق العناوين لجعلها متناسقة مع بقية الموقع */
    .new-student h2.title-2 {
        color: var(--primaryColor);
        font-size: 26px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    /* تحسين عرض النموذج */
    .new-student .table-responsive {
        background-color: var(--bodyColor); /* تحسين الخلفية لتتناسب مع بقية المشروع */
        padding: 20px;
        border-radius: var(--border-radius);
    }

    /* تحسين التنبيه في حالة عدم تعبئة الحقول */
    .new-student .swal2-popup {
        font-size: 16px !important;
        border-radius: var(--border-radius);
    }
/* ============== End new Student section ========== */





/*============== Start Footer section ==========*/
.footer {
    /*background-color: #1c1d1c;*/
    background-color: var(--boxColor);
}

    .footer .box {
        background-color: var(--border-radius);
    }

        .footer .box p {
            color: var(--secendaryColor);
        }

        .footer .box .logo img {
            width: 5rem;
            max-width: 60px;
            max-height: 60px;
        }

        .footer .box .icon {
            color: #fff;
            background-color: var(--brand-color);
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: grid;
            place-items: center;
        }

        .footer .box h4 {
            /*color: #b6b6b6;*/
            color: var(--primaryColor);
        }

        .footer .box p {
            /*color: #a2a1a1;*/
            color: var(--primaryColor);
        }

    .footer h4 {
        /*color: #b6b6b6;*/
        color: var(--secendaryColor);
        font-size: 18px;
        font-weight: 600;
    }

    .footer ul {
        margin: 0;
        padding: 0;
    }

        .footer ul li {
            /*color: #ddd;*/
            color: var(--brand-color);
            cursor: pointer;
        }

            .footer ul li a {
                font-size: 14px;
                font-weight: 400;
                text-transform: capitalize;
                /*color: #ddd;*/
                color: var(--primaryColor);
            }

            .footer ul li i {
                font-size: 12px;
            }

    .footer .copyrights {
        display: flex;
        flex-direction: column; /* Align vertically on small screens */
        align-items: start; /* Center the content */
        text-align: start;
    }

        .footer .copyrights a {
            color: var(--brand-color);
            font-weight: 600;
            font-size: 1rem;
        }

        .footer .copyrights p {
            color: var(--primaryColor);
            text-align: start;
            direction: rtl;
            font-size: 1rem;
        }

        .footer .copyrights .credits {
            font-size: 16px; /* You can keep this */
            letter-spacing: 0.5px; /* Adjust as needed */
            white-space: normal; /* Allow wrapping */
            align-items: start; /* Center the content */
            text-align: start;
        }


@media (min-width: 768px) {
    .footer .copyrights {
        flex-direction: row; /* Align horizontally on larger screens */
        justify-content: space-between;
    }
}

/*
.users-online {
    font-size: 1.1em;
    font-weight: bold;
}*/


.footer hr {
    /*color: #8b0500;*/
    color: var(--secendaryColor);
}



/* تحسين عنصر "المتواجدين حالياً" */
/* تحسين عنصر "المتواجدين حالياً" */
.users-online {
    font-size: 1em; /* تقليل حجم الخط */
    font-weight: normal; /* تقليل سمك الخط */
    color: var(--primaryColor);
    /*padding: 5px 10px;*/ /* تقليل التباعد الداخلي */
    border-radius: var(--border-radius);
    display: flex; /* استخدام flex لسهولة المحاذاة */
    align-items: center;
    gap: 6px; /* تقليل المسافة بين الأيقونة والنص */
    position: relative;
}

    .users-online i {
        font-size: 1.2em; /* تقليل حجم الأيقونة */
        color: var(--brand-color);
        animation: none; /* إزالة تأثير النبض */
    }

    .users-online span {
        color: var(--primaryColor);
        animation: none; /* إزالة تأثير النبض */
        font-weight: bold;
    }

    .users-online a#usersOnline {
        color: var(--primaryColor);
        text-decoration: underline;
    }


    /* إزالة تأثيرات التحريك والظل */
    .users-online::after {
        content: none;
    }

    /* إذا كنت ترغب في تأثير بسيط عند التمرير */
    .users-online:hover {
        color: var(--brand-color);
    }



@keyframes pulse {
    0% {
        transform: scale(1);
        color: var(--primaryColor);
    }

    50% {
        transform: scale(1.1);
        color: var(--brand-color);
    }

    100% {
        transform: scale(1);
        color: var(--primaryColor);
    }
}













/*============== End Footer section ==========*/

/* ================= start 404 page ===================== */
.fzf {
    width: 100%;
    overflow: hidden;
    height: 100%;
    display: grid;
    place-items: center;
    place-content: center;
}

    .fzf .content {
        margin-top: 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .fzf .content img {
            width: 70%;
        }

        .fzf .content h1 {
            font-size: 60px;
            text-transform: uppercase;
            font-weight: bold;
            margin-block: 1rem;
        }

/* ================= end 404 page ===================== */

/* ================= start login page + register page  ===================== */

.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth input {
        border: 0;
        outline: 0;
        margin-block: 0.5rem;
        text-align: end;
        direction: ltr;
    }

    .auth p {
        text-align: start;
    }

    .auth .unique-text {
        font-weight: 600;
    }


    .auth h1 {
        text-align: start;
    }


    .auth .container {
        direction: rtl;
    }

.auth-image {
    border-radius: var(--border-radius);
    object-fit: cover;
    overflow: hidden;
}

.auth-btn-back {
    padding: 8px 25px;
    display: block;
    font-weight: 800;
    border-radius: 40px;
    font-size: 20px;
    outline: none;
    border: none;
    text-transform: uppercase;
    margin: 1rem 0;
    cursor: pointer;
    padding: 10px 0;
    color: #ffffff;
    background-color: #403e57;
    border-color: #3a3768;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .auth-btn-back:hover {
        background-color: #2f2d5a;
        border-color: #2f2d5a;
    }



@media (max-width: 768px) {
    .auth-image {
        max-width: 500px; /* عرض الصورة على الأجهزة المحمولة */
        max-height: 500px; /* ارتفاع الصورة على الأجهزة المحمولة */
    }

    .auth-btn-back {
        padding: 6px 18px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .auth-image {
        max-width: 500px; /* عرض الصورة على الهواتف */
        max-height: 500px; /* ارتفاع الصورة على الهواتف */
    }

    .auth-btn-back {
        padding: 6px 18px;
        font-size: 16px;
    }
}


/* ================= end login page + register page  ===================== */


/* =========== Start Videos Section ============ */
.videos {
    background-color: var(--bodyColor);
    padding: 60px 0;
    text-align: center;
}

    .videos .container {
        max-width: 1200px;
        margin: auto;
        padding: 0 20px;
    }

    .videos .title {
        color: var(--primaryColor);
        font-size: 36px;
        margin-bottom: 20px;
    }

    .videos .subtitle {
        color: var(--secendaryColor);
        font-size: 20px;
        margin-bottom: 40px;
        text-align: end;
    }

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-item {
    padding: 0;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--boxColor);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 320px;
    /* تحديد ارتفاع ثابت */
    height: 280px; /* يمكنك ضبط هذا القيم حسب الحاجة */
}

    .video-item:hover {
        transform: translateY(-10px);
    }

.video-content {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    /* استخدام aspect-ratio للحفاظ على النسبة */
    aspect-ratio: 16/9; /* النسبة القياسية للفيديوهات */
    object-fit: cover; /* لضمان تناسب الفيديو داخل العنصر */
}

.video-title {
    color: var(--title-2-color);
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.video-subtitle {
    color: var(--secendaryColor);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .videos .title {
        font-size: 28px;
    }

    .videos .subtitle {
        font-size: 18px;
    }

    .video-grid {
        gap: 10px;
    }

    .video-item {
        max-width: 100%;
        height: auto; /* السماح للارتفاع بالتكيف مع العرض */
    }
}
/* =========== End Videos Section ============ */


/* Story Section Styles */
#story {
    background-color: var(--bodyColor);
    padding: 60px 0;
    direction: rtl; /* Right-to-left text alignment for Arabic content */
    text-align: right; /* Align text to the right */
    margin-bottom: 100px; /* إضافة مسافة إضافية في الأسفل */
}

    #story .heading {
        text-align: right; /* Ensure heading is right-aligned */
        margin-bottom: 30px;
        direction: ltr;
    }

    #story .title {
        color: var(--primaryColor);
        font-size: 36px;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: right; /* Right-align title */
    }

    #story .subtitle {
        color: var(--secendaryColor);
        font-size: 18px;
        margin-bottom: 40px;
        text-align: right; /* Right-align subtitle */
    }

    #story .story-content {
        text-align: right;
        padding-right: 20px;
        margin-top: -15px; /* تغيير هذه القيمة حسب الحاجة */
    }

    #story .container {
        max-width: 1200px; /* تحديد العرض الأقصى للكونتينر داخل القسم #story */
        padding: 0 15px; /* إضافة مسافة من الحواف للكونتينر داخل القسم #story */
    }

    #story .row {
        display: flex;
        align-items: flex-start; /* لمحاذاة المحتويات من الأعلى */
    }

    #story .col-md-6 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* لمحاذاة المحتويات في العمود من الأعلى */
    }

    #story .container {
        font-size: 90px;
        font-weight: bold;
        color: var(--title-2-color);
        margin-bottom: 15px;
        text-align: right; /* Right-align story title */
    }


    #story .story-content h1 {
        font-size: 28px;
        font-weight: bold;
        color: var(--title-2-color);
        margin-bottom: 15px;
        text-align: right; /* Right-align story title */
    }

    #story .story-content p {
        color: var(--secendaryColor);
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 20px;
        text-align: right; /* Right-align paragraphs */
    }

    #story .story-image {
        width: 100%;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    #story .row > .col-1 img {
        width: 20px;
        height: 20px;
        display: block; /* Ensures it's displayed correctly */
        float: right; /* Align the icon to the right */
    }

    #story .row > .col-11 h3 {
        font-size: 16px;
        color: var(--title-2-color);
        font-weight: bold;
        margin-bottom: 5px;
        text-align: right; /* Right-align benefit titles */
    }

    #story .row > .col-11 p {
        font-size: 14px;
        color: var(--secendaryColor);
        line-height: 1.6;
        text-align: right; /* Right-align benefit descriptions */
    }

    #story h1 {
        font-size: 84px;
        color: var(--secendaryColor);
        line-height: 1.6;
        text-align: right; /* Right-align benefit descriptions */
    }

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #story .title {
        font-size: 28px;
    }

    #story .subtitle {
        font-size: 16px;
    }

    #story .story-content h1 {
        font-size: 24px;
    }

    #story .story-content p {
        font-size: 14px;
    }

    #story .story-image {
        margin-bottom: 20px;
    }
}



.news-section {
    background-color: var(--bodyColor);
    padding: 60px 0;
}

.news-box {
    background-color: var(--boxColor);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-top: 20px; /* إضافة مسافة تحت العنوان */
}

body.home-rtl .news-box > * {
    justify-self: end;
    text-align: start;
    direction: rtl;
}


.news-box:hover {
    transform: translateY(-10px);
}

.news-img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    max-width: 500px;
    max-height: 200px;
    min-width: 200px;
    min-height: 200px;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--title-2-color);
    margin-bottom: 20px;
    text-align: right; /* محاذاة النص إلى اليمين */
}

.news-description {
    font-size: 16px;
    color: var(--secendaryColor);
    margin-bottom: 10px;
    max-height: 100px; /* تحديد أقصى ارتفاع */
    overflow-y: auto; /* السماح بالتمرير العمودي */
    text-align: right; /* محاذاة النص إلى اليمين */
    direction: rtl;
}


.news-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-color);
    text-align: right; /* محاذاة النص إلى اليمين */
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-6.col-lg-4 {
    display: flex;
    flex-direction: column;
}

.news-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-description {
    flex-grow: 1; /* يجعل الوصف يأخذ المساحة المتاحة */
}




.card {
    background-color: var(--boxColor);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-10px);
    }

.pretitle {
    font-size: 18px;
    color: var(--brand-color);
    text-transform: capitalize;
    direction: rtl;
    text-align: start;
}

/* تعديل محاذاة الصور */
.icon-img {
    max-height: 80px;
    max-width: 80px;
    height: 80px;
    width: 80px;
    display: block; /* جعل الصورة عنصر كتلة */
    margin: 0 auto; /* محاذاة الصورة في المنتصف */
}

.card-coin {
    background-color: transparent !important; /* تعيين لون الخلفية إلى الأبيض */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* إضافة ظل خفيف */
    border-radius: 10px !important; /* إضافة حواف مستديرة */
    padding: 15px !important; /* تعديل التباعد الداخلي */
    border: 1px solid #ddd !important; /* إضافة إطار خفيف لتحديد الحواف */
    height: auto !important; /* جعل الارتفاع يعتمد على المحتوى */
    min-height: 150px !important; /* تعيين حد أدنى للارتفاع */
    max-height: 220px !important; /* تعيين حد أقصى للارتفاع إذا رغبت */
}

    /* تعديل تخطيط عناصر الفليكس */
    .card-coin .card-body {
        display: flex;
        flex-direction: column;
        align-items: center; /* جعل المحتويات تصطف في المنتصف */
        justify-content: center; /* توسيط المحتويات عمودياً */
    }

/* تعديل اتجاه الرو في حالة الفلكس */
.row {
    flex-direction: row; /* إلغاء عكس الاتجاه لجعل العناصر تبدأ من اليسار */
    justify-content: center; /* توسيط جميع العناصر في الصف */
}


/*================== start Table section ==================*/

.home-rtl .table-section {
    text-align: end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 200px;
    direction: rtl;
    min-height: 40vh;
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
}

/* تصميم h4 الخاص بالمجموعة */
.table-section h4 {
    font-size: 22px; /* حجم النص */
    color: var(--brand-color) !important; /* لون النص الأساسي */
    font-weight: bold; /* جعل النص عريضاً */
    text-align: start !important; /* محاذاة النص إلى اليمين لتتوافق مع الاتجاه RTL */
    margin-bottom: 15px; /* إضافة مسافة أسفل العنوان */
    padding-top: 20px; /* إضافة مسافة تحت العنوان */
    padding-bottom: 5px; /* إضافة مسافة تحت العنوان */
    letter-spacing: 1px; /* إضافة تباعد بين الأحرف */
    text-transform: uppercase; /* تحويل النص إلى أحرف كبيرة */
}


/*.table-bordered {
    border: 2px solid var(--brand-color) !important;*/ /* Keep the top border consistent */
/*}*/

.table tbody td.notes-column {
    max-width: 300px; /* يمكنك تعديل العرض بحسب احتياجاتك */
    white-space: nowrap; /* منع التفاف النص */
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة ثلاث نقاط عند تجاوز النص الحد المسموح */
}


.table tbody td .btn-danger {
    padding: 5px 10px; /* تقليل الحشو لجعل الزر أصغر */
    font-size: 14px; /* تقليل حجم النص داخل الزر */
    background-color: #dc3545; /* لون الزر أحمر */
    color: white; /* لون النص أبيض */
    border-radius: 5px; /* زوايا الزر مدورة */
    border: none; /* إزالة الإطار الافتراضي */
    height: auto; /* لجعل ارتفاع الزر يتناسب مع حجم النص */
}

    .table tbody td .btn-danger:hover {
        background-color: #c82333; /* تغيير لون الزر عند التحويم */
    }

.table thead {
    background-color: var(--brand-color);
    color: var(--bodyColor);
}

/* جعل خلفية جميع الصفوف شفافة */
.table tbody tr {
    background-color: var(--bodyColor);
}

.table tbody tr {
    color: var(--dark-brand-color); /* استخدام نفس لون النص الأساسي */
    background-color: var(--bodyColor); /* نفس لون خلفية رأس الجدول */
}

    .table tbody tr:hover {
        background-color: var(--boxColor);
    }

.table-section .container {
    background-color: var(--bodyColor);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: end;
}

.table-section h4 {
    font-size: 20px; /* تكبير الخط */
    text-align: right; /* محاذاة لليمين */
    font-weight: bold; /* جعل النص غامقًا إذا رغبت بذلك */
    margin-bottom: 10px; /* إضافة مسافة أسفل العنوان */
    color: var(--primaryColor);
}

.table tbody td {
    color: var(--primaryColor); /* لون النص الأساسي في الصفوف */
}

.table .action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* زيادة المسافة بين الأزرار */
}

    .table .action-buttons i {
        font-size: 22px; /* تكبير حجم الأيقونات قليلاً */
        cursor: pointer;
        transition: color 0.3s ease; /* تأثير الانتقال عند التحويم */
    }

        .table .action-buttons i:hover {
            color: var(--secondaryColor); /* تغيير اللون عند التحويم */
        }

.table tbody td .delete-icon {
    color: var(--forbidden-color); /* لون زر السحب */
    font-size: 22px; /* حجم الأيقونة */
    cursor: pointer;
    transition: color 0.3s ease; /* تأثير عند التحويم */
}

    .table tbody td .delete-icon:hover {
        color: var(--secondaryColor); /* تغيير اللون عند التحويم */
    }

/* تصميم الأيقونة داخل الجدول بحيث تأخذ اللون الأساسي للمشروع */
.table tbody td i {
    color: var(--brand-color); /* لون الأيقونة الأساسي */
    font-size: 22px; /* تكبير حجم الأيقونات */
    cursor: pointer; /* تغيير المؤشر إلى يد عند تمرير الماوس */
    transition: color 0.3s ease; /* إضافة تأثير الانتقال عند التحويم */
}

    .table tbody td i:hover {
        color: var(--secondaryColor); /* تغيير اللون عند التحويم إلى اللون الثانوي */
    }

/*================== End Table section ==================*/

/*================== start Table Footer section ==================*/

/* Styling for the table footer row */
.table-footer {
    background-color: var(--boxColor); /* Match the color with other table elements */
    border-top: 2px solid var(--brand-color); /* Give the footer a distinct top border */
}

    .table-footer td {
        padding: 15px; /* Add padding to make the content look better */
    }

    .table-footer .row {
        margin: 0; /* Remove extra margins */
        padding: 10px 0; /* Add padding for spacing */
    }

    .table-footer .col {
        font-size: 14px; /* Adjust font size for better readability */
        font-weight: bold; /* Make text bold for emphasis */
        color: var(--primaryColor); /* Use primary text color */
    }

/* Ensure the footer aligns properly and fits without causing horizontal scroll */
.table-responsive {
    overflow-x: auto; /* Ensure that the table stays responsive without unnecessary scrolling */
}

.table-section .container {
    padding: 20px;
    margin-top: 20px;
    background-color: var(--bodyColor);
    border-radius: 10px;
    text-align: end; /* Ensure text aligns correctly in RTL layout */
}

/* Minor tweaks to table to ensure no overflow */
/*.table tbody td {
    white-space: nowrap;*/ /* Prevent text wrapping to avoid horizontal scroll */
/*}*/

.table tbody td {
    padding: 5px 5px; /* تقليل الحشو داخل الخلايا لتقليل ارتفاع الصفوف */
    white-space: nowrap; /* منع التفاف النص */
    color: var(--primaryColor); /* لون النص الأساسي في الصفوف */
    vertical-align: middle; /* جعل المحتوى في منتصف الخلية عموديًا */
}


.table-footer {
    /*background-color: var(--boxColor) !important;*/ /* Force the background color to change */
    border: 2px solid var(--brand-color) !important; /* Keep the top border consistent */
    text-align: center; /* Center-align footer content */
}


/*================== End Table Footer section ==================*/

/*================== Media Queries for small screens ==================*/

@media (max-width: 768px) {
    /* Adjust font size for small screens like tablets and mobiles */
    .table-section h4 {
        font-size: 16px; /* Smaller font for group headers */
    }

    .table-footer .col {
        font-size: 12px; /* Reduce font size in the footer for better fit */
    }

    .table tbody td {
        font-size: 12px; /* Reduce table body font size */
    }

    .table thead th {
        font-size: 12px; /* Reduce table header font size */
    }

    .table .action-buttons i {
        font-size: 18px; /* Make icons slightly smaller */
    }

    .table tbody td .btn-danger {
        font-size: 12px; /* Reduce button font size */
        padding: 3px 8px; /* Adjust button padding */
    }
}

/* For extra small screens */
@media (max-width: 576px) {
    .table-section h4 {
        font-size: 14px; /* Further reduce font size for very small screens */
    }

    .table-footer .col {
        font-size: 12px; /* Further reduce footer font size */
    }

    .table tbody td {
        font-size: 12px; /* Further reduce table body font size */
    }

    .table thead th {
        font-size: 12px; /* Further reduce table header font size */
    }

    .table .action-buttons i {
        font-size: 16px; /* Make icons even smaller for extra small screens */
    }

    .table tbody td .btn-danger {
        font-size: 12px; /* Further reduce button font size */
        padding: 2px 5px; /* Further adjust button padding */
    }
}

/*================== End Media Queries ==================*/




/*================== start dashbourd section ==================*/
.dashbourd {
    min-height: 40vh;
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
}

    .dashbourd .box-icon i {
        color: var(--brand-color);
        font-size: 3rem;
        margin-top: 10px;
    }


    .dashbourd .container {
        background-color: var(--bodyColor);
        margin-top: 10px;
        text-align: end;
        direction: rtl;
    }


@media (max-width: 990px) {
    .home-rtl {
        margin-top: 10px;
    }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#content {
    position: relative;
    z-index: 1;
}

.dashbourd .dashbourd-text .title {
    line-height: 65px;
    font-size: 52px;
}

.dashbourd .dashbourd-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    background-color: var(--boxColor);
}

    .dashbourd .dashbourd-icons a:hover {
        background-color: var(--brand-color);
    }

        .dashbourd .dashbourd-icons a:hover > i {
            color: var(--boxColor);
        }

.dashbourd .dashbourd-icons i {
    font-size: 20px;
    color: var(--secendaryColor);
    cursor: pointer;
}

@media (max-width: 990px) {
    .dashbourd .dashbourd-text .title {
        line-height: 65px;
        font-size: 44px;
    }
}

.btn-main:hover {
    background-color: #19a56b;
}

.dashbourd-img {
    border-radius: 20px; /* تنعيم زوايا الصورة */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* إضافة ظل للصورة */
    transition: transform 0.4s ease;
}

    .dashbourd-img:hover {
        transform: scale(1.05); /* تكبير الصورة قليلاً عند المرور فوقها */
    }

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .unique-text {
        color: var(--brand-color);
        /*        font-size: 1.5rem;
*/
    }

    .btn-main {
        padding: 10px 20px;
    }
}

/*================== end dashbourd section =====================*/

/* ======= Start Modal Styling (RTL) ======== */

.modal-elegant {
    background-color: #1c1c1c;
    color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    direction: rtl; /* لضبط الاتجاه من اليمين */
}

.modal-dialog {
    display: flex;
    align-items: center; /* لتوسيط الـ Modal عموديًا */
    justify-content: center; /* لتوسيط الـ Modal أفقيًا */
    min-height: 100vh; /* لضمان بقاء الـ Modal في منتصف الشاشة */
}

.modal-header-elegant {
    background-color: var(--brand-color);
    color: #ffffff;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center; /* لتوسيط المحتوى أفقيًا */
    align-items: center; /* لتوسيط المحتوى عموديًا */
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-align: center; /* توسيط العنوان */
}

.modal-body {
    padding: 20px;
    background-color: var(--bodyColor);
    color: #f9f9f9;
    text-align: center; /* توسيط النص */
    direction: rtl; /* لضبط الاتجاه من اليمين */
}

.info-box {
    background-color: var(--boxColor);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* يبقي على الشبكة بثلاثة أعمدة */
    gap: 10px;
}

.info-box p {
    margin: 0;
    padding: 5px 0;
}

.info-box i {
    font-size: 24px;
    color: var(--brand-color);
    display: block;
    margin-bottom: 5px;
}

/*.modal-footer .btn {
    background-color: var(--brand-color);
    color: var(--brand-color);
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

    .modal-footer .btn:hover {
        background-color: #19a56b;
    }*/

/* لإضافة تأثير التعتيم المكثف على الخلفية */
.modal-backdrop.show {
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.9); /* خلفية داكنة أكثر */
}

/* لمنع التمرير في الخلفية */
body.modal-open {
    overflow: hidden; /* لمنع التمرير عند فتح الـ Modal */
}

/* ======= End Modal Styling (RTL) ======== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding-right: 40px; /* إضافة حشو لليمين لإتاحة مساحة للأيقونة */
    padding: 10px; /* تقليل الحشو */
    border-radius: var(--border-radius) !important;
    border: 2px solid var(--brand-color) !important;
    background-color: var(--boxColor) !important;
    color: var(--primaryColor);
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    height: 45px; /* زيادة الارتفاع */
}

    input:focus,
    textarea:focus,
    select:focus {
        background-color: var(--bodyColor) !important;
        border-color: var(--brand-color) !important;
        outline: none !important;
        box-shadow: 0 0 5px rgba(0, 128, 0, 0.5) !important; /* تأثير عند التركيز */
    }



    /* إلغاء تأثير اللون الأزرق في Chrome */
    input[type="text"]::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder {
        color: var(--primaryColor) !important; /* لون العنصر النائب */
        opacity: 0.8;
    }

    input[type="text"]:-moz-placeholder,
    textarea:-moz-placeholder {
        color: var(--primaryColor) !important; /* لون العنصر النائب */
        opacity: 0.8;
    }

    input[type="text"]::-moz-placeholder,
    textarea::-moz-placeholder {
        color: var(--title-2-color) !important; /* لون العنصر النائب */
        opacity: 0.8;
    }

    input[type="text"]:-ms-input-placeholder,
    textarea:-ms-input-placeholder {
        color: var(--primaryColor); /* لون العنصر النائب */
        opacity: 0.8;
    }


/* تنسيق عنصر select */
select {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius) !important;
    border: 2px solid var(--brand-color) !important;
    background-color: var(--boxColor) !important;
    color: var(--primaryColor) !important;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 45px;
    box-shadow: none;
    font-size: 16px;
    text-align: right; /* تأكد من أن النص يبدأ من اليمين */
    direction: rtl; /* تحديد اتجاه النص من اليمين إلى اليسار */
    height: 45px;
}

    /* تأثير عند التفاعل مع العنصر */
    select:focus {
        background-color: var(--bodyColor);
        border-color: var(--brand-color) !important;
        outline: none;
        box-shadow: none !important;
    }

    /* إلغاء السهم الافتراضي */
    select::-ms-expand {
        display: none;
    }

/* تعديل مكان السهم ليظهر على اليسار */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .custom-select::after {
        content: '\25BC'; /* سهم للأسفل */
        font-size: 16px;
        color: var(--primaryColor);
        position: absolute;
        left: 15px; /* جعل السهم على اليسار بدلاً من اليمين */
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

/* تخصيص السهم والتأكد من مظهره الجيد */
.select-container {
    position: relative;
}

/*
input[type="submit"],
button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);  نفس نصف القطر 
    background-color: var(--brand-color);  لون الزر الأساسي 
    color: var(--bodyColor);  لون النص داخل الزر 
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    input[type="submit"]:hover,
    button:hover {
        background-color: #19a56b;  لون أغمق عند التمرير 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  إضافة ظل خفيف 
    }
*/



.highlight-button {
    color: var(--brand-color); /* استخدام لون العلامة التجارية للنص */
    font-weight: bold; /* نص عريض */
    transition: color 0.3s, transform 0.3s; /* انتقال سلس لتغييرات اللون والحجم */
    animation: glowing-day2 3s infinite ease-in-out; /* تطبيق الرسوم المتحركة مع انسيابية */
    text-decoration: none; /* إزالة التسطير من الرابط */
    display: inline-block; /* لجعل التأثيرات تعمل بشكل أفضل */
    /*padding: 5px 10px;*/ /* إضافة مسافة حول النص */
}

    .highlight-button:hover {
        color: #ffffff; /* تغيير لون النص عند التمرير */
        /*transform: scale(1.1);*/ /* تكبير النص قليلاً عند التمرير */
        /*box-shadow: 0 0 15px rgba(33, 198, 139, 0.8);*/ /* إضافة ظل أكثر وضوحاً */
    }



/*
@keyframes text-glow {
    0% {
        text-shadow: 0 0 5px rgba(33, 198, 139, 0.5), 0 0 10px rgba(33, 198, 139, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(33, 198, 139, 1), 0 0 30px rgba(33, 198, 139, 0.8);
    }

    100% {
        text-shadow: 0 0 5px rgba(33, 198, 139, 0.5), 0 0 10px rgba(33, 198, 139, 0.5);
    }
}
*/



.red-row {
    background-color: #f8d7da;
}

@media (max-width: 768px) {
    .sticky-header th {
        position: static; /* منع التصاق العنوان */
    }
}

.no-tel {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.college-logo-container {
    display: flex;
    flex-direction: row; /* تنظيم العناصر في صف أفقي */
    align-items: center; /* محاذاة عمودية للعناصر في المركز */
    justify-content: flex-start; /* تقليل المساحة بين الشعار والنص */
    margin-bottom: 0px; /* إزالة المسافة السفلية */
    text-align: start;
    gap: 5px; /* تقليل المسافة بين الشعار والنص */
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* محاذاة النصوص إلى اليسار */
    margin-left: 5px; /* تقليل المسافة بين الشعار والنص */
}

.loginlogo {
    width: 80px;
    height: auto;
    margin-right: 5px; /* تقليل المسافة اليمنى بين الشعار والنص */
}

.college-name {
    font-size: 18px;
    color: var(--primaryColor);
    font-weight: bold;
    margin-top: 0; /* إزالة المسافة العلوية */
    text-transform: capitalize;
    text-align: start;
}

.custom-alert {
    background-color: var(--boxColor); /* نفس لون الصناديق في المشروع */
    border-left: 4px solid var(--brand-color); /* شريط جانبي بلون العلامة التجارية */
    padding: 15px 20px; /* مسافة داخلية مناسبة */
    border-radius: var(--border-radius); /* حواف مستديرة */
    display: flex; /* لتوسيط الأيقونة والنص */
    align-items: center; /* محاذاة الأيقونة مع النص */
    color: var(--primaryColor); /* لون النص */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    text-decoration: none; /* إلغاء التسطير الافتراضي */
}

    .custom-alert i {
        font-size: 24px; /* حجم الأيقونة */
        color: var(--brand-color); /* لون الأيقونة */
        margin-right: 10px; /* مسافة بين الأيقونة والنص */
    }

    .custom-alert.alert-info {
        background-color: var(--boxColor); /* لون خلفية مختلف للتنبيه */
        color: var(--primaryColor); /* لون النص */
    }

    .custom-alert a {
        color: var(--primaryColor); /* لون النص داخل الرابط */
        text-decoration: none; /* إزالة التسطير الافتراضي */
        font-weight: bold; /* جعل النص غامقاً */
        transition: color 0.3s ease; /* تأثير التغيير في اللون */
        margin-right: 10px;
    }

        .custom-alert a:hover {
            color: var(--brand-color); /* تغيير اللون عند التمرير */
            text-decoration: underline; /* إضافة تسطير عند التمرير */
        }

    .custom-alert p {
        color: var(--primaryColor); /* لون النص داخل الرابط */
        text-decoration: none; /* إزالة التسطير الافتراضي */
        font-weight: bold; /* جعل النص غامقاً */
        transition: color 0.3s ease; /* تأثير التغيير في اللون */
        margin-right: 10px;
    }



.custom-alert2 {
    background-color: var(--boxColor); /* نفس لون الصناديق في المشروع */
    border-left: 4px solid var(--forbidden-color); /* شريط جانبي بلون العلامة التجارية */
    padding: 15px 20px; /* مسافة داخلية مناسبة */
    border-radius: var(--border-radius); /* حواف مستديرة */
    display: flex; /* لتوسيط الأيقونة والنص */
    align-items: center; /* محاذاة الأيقونة مع النص */
    color: var(--primaryColor); /* لون النص */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    text-decoration: none; /* إلغاء التسطير الافتراضي */
}

    .custom-alert2 i {
        font-size: 24px; /* حجم الأيقونة */
        color: var(--forbidden-color); /* لون الأيقونة */
        margin-right: 10px; /* مسافة بين الأيقونة والنص */
    }

    .custom-alert2.alert-info {
        background-color: var(--boxColor); /* لون خلفية مختلف للتنبيه */
        color: var(--primaryColor); /* لون النص */
    }

    .custom-alert2 a {
        color: var(--primaryColor); /* لون النص داخل الرابط */
        text-decoration: none; /* إزالة التسطير الافتراضي */
        font-weight: bold; /* جعل النص غامقاً */
        transition: color 0.3s ease; /* تأثير التغيير في اللون */
        margin-right: 10px;
    }

        .custom-alert2 a:hover {
            color: var(--forbidden-color); /* تغيير اللون عند التمرير */
            text-decoration: underline; /* إضافة تسطير عند التمرير */
        }

    .custom-alert2 p {
        color: var(--primaryColor); /* لون النص داخل الرابط */
        text-decoration: none; /* إزالة التسطير الافتراضي */
        font-weight: bold; /* جعل النص غامقاً */
        transition: color 0.3s ease; /* تأثير التغيير في اللون */
        margin-right: 10px;
    }












.dropdown-menu {
    text-align: right; /* محاذاة النص إلى اليمين */
    direction: rtl; /* التأكد من أن اتجاه القائمة من اليمين إلى اليسار */
}


.dropdown-toggle {
    display: inline-flex; /* لجعل النص والسهم في نفس المستوى */
    align-items: center; /* محاذاة السهم عموديًا مع النص */
}

    .dropdown-toggle::after {
        content: ""; /* السهم الافتراضي */
        float: none; /* تعطيل التأثير الافتراضي للسهم */
        margin-left: 10px; /* مسافة صغيرة بين السهم والنص */
        margin-right: 5px; /* إزالة المسافة على اليمين */
        vertical-align: middle; /* محاذاة السهم مع النص */
        /*font-size: 0.75em;*/ /* تصغير حجم السهم */
    }



/* تأثير عند التركيز على الحقل */
.form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 5px rgba(33, 198, 139, 0.5);
}

/* تصميم الأزرار */
.btn-main {
    background-color: var(--brand-color);
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    transition: background-color 0.3s ease;
}

    .btn-main:hover {
        background-color: #19a56b;
    }



.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-text {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
}

.input-group .form-control {
    border-radius: 0.375rem;
    padding-right: 45px; /* إضافة مساحة لحجز مكان الأيقونة */
}

.input-group .input-group-text {
    position: absolute;
    right: 0; /* تأكد من وضع الأيقونة في الجهة اليمنى داخل الحقل */
    height: 100%;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
    padding: 0 10px;
}

    .input-group .input-group-text i {
        font-size: 1.25rem;
        color: #21c68b; /* استخدم لون العلامة التجارية للأيقونات */
    }

.teacher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl; /* للتأكد من أن النص يبدأ من اليمين */
    margin-bottom: 20px; /* إضافة مسافة أسفل العنوان إذا لزم الأمر */
}

.inline-form {
    margin: 0; /* إزالة أي هوامش افتراضية */
}

.evaluation-icon-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 5px;
    position: relative;
}

    .evaluation-icon-btn i {
        font-size: 24px;
        color: var(--brand-color);
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .evaluation-icon-btn:hover i {
        color: var(--primaryColor);
        transform: scale(1.2);
    }

    .evaluation-icon-btn::after {
        content: '';
        position: absolute;
        top: -5px;
        right: -5px;
        width: 10px;
        height: 10px;
        background-color: var(--brand-color);
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 198, 139, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(33, 198, 139, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 198, 139, 0);
    }
}


.exams-icon-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 5px;
    position: relative;
}

    .exams-icon-btn i {
        font-size: 24px;
        color: var(--brand-color);
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .exams-icon-btn:hover i {
        color: var(--primaryColor);
        transform: scale(1.2);
    }

    .exams-icon-btn::after {
        content: '';
        position: absolute;
        top: -5px;
        right: -5px;
        width: 10px;
        height: 10px;
        background-color: var(--brand-color);
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 198, 139, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(33, 198, 139, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 198, 139, 0);
    }
}



/* تحسين تصميم القسم */
.video-section {
    background-color: var(--bodyColor);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

    .video-section .heading .title {
        font-size: 2.5rem;
        color: var(--primaryColor);
        font-weight: bold;
        margin-bottom: 10px;
    }

    .video-section .heading .subtitle {
        font-size: 1.2rem;
        color: var(--secendaryColor);
        margin-bottom: 20px;
    }

/* تحسين تصميم الفيديو */
.video-container {
    background-color: var(--boxColor);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 20px;
}

.video-player {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 2px solid var(--brand-color);
    border-radius: var(--border-radius);
}

#startBroadcast {
    background-color: var(--brand-color);
    color: white;
    border: none;
}

#stopBroadcast {
    background-color: #dc3545;
    color: white;
    border: none;
}



.videoheading {
    margin-top: 80px; /* أو حسب المسافة المطلوبة */
    z-index: 1; /* للتأكد من عدم تغطيتها */
    position: relative;
}


.room-section {
    background-color: var(--bodyColor);
    padding: 40px 0;
}

    .room-section .box {
        background-color: var(--boxColor);
        border-radius: var(--border-radius);
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .room-section .video-box {
        width: 100%;
        max-width: 300px;
        border: 2px solid var(--brand-color);
        border-radius: var(--border-radius);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.video-box {
    width: 200px; /* حجم الفيديو الصغير */
    height: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .video-box.fullscreen {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%; /* حجم الفيديو الكبير */
        height: auto;
        z-index: 1000;
    }



@keyframes glowing-green {
    0% {
        color: #21c68b;
        text-shadow: 0 0 5px #21c68b, 0 0 10px #21c68b;
    }

    50% {
        color: #21c68b;
        text-shadow: 0 0 20px #21c68b, 0 0 30px #21c68b;
    }

    100% {
        color: #21c68b;
        text-shadow: 0 0 5px #21c68b, 0 0 10px #21c68b;
    }
}

@keyframes glowing-red {
    0% {
        color: var(--forbidden-color);
        text-shadow: 0 0 5px red, 0 0 10px red;
    }

    50% {
        color: var(--forbidden-color);
        text-shadow: 0 0 20px red, 0 0 30px red;
    }

    100% {
        color: var(--forbidden-color);
        text-shadow: 0 0 5px red, 0 0 10px red;
    }
}

.text-success.glowing {
    animation: glowing-green 2s infinite;
}

.text-danger.glowing {
    animation: glowing-red 2s infinite;
}


.section-title-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl; /* للتأكد من أن النص يبدأ من اليمين */
    margin-bottom: 20px; /* إضافة مسافة أسفل العنوان إذا لزم الأمر */
    color: var(--brand-color);
    font-weight: bold;
}

.section-title-sub2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl; /* للتأكد من أن النص يبدأ من اليمين */
    margin-bottom: 20px; /* إضافة مسافة أسفل العنوان إذا لزم الأمر */
    color: var(--highlight-color);
    font-weight: bold;
}



.button-group {
    display: flex; /* استخدام Flexbox */
    justify-content: flex-start; /* محاذاة الأزرار إلى اليسار */
    gap: 10px; /* مسافة بين الأزرار */
    margin-top: 20px; /* إضافة مسافة بين الأزرار والعناصر الأخرى */
    direction: rtl;
}

.nav-item-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--brand-color); /* لون الخلفية */
    color: var(--bodyColor); /* لون النص */
    font-weight: bold; /* خط عريض */
    text-transform: capitalize;
    border-radius: var(--border-radius); /* الحواف مستديرة */
    text-decoration: none; /* إزالة التسطير */
    transition: background-color 0.3s ease, transform 0.3s ease; /* تأثيرات جميلة */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
}

    .nav-item-link:hover {
        background-color: #19a56b; /* تغيير اللون عند التمرير */
        transform: translateY(-2px); /* ارتفاع بسيط عند التمرير */
    }

    .nav-item-link:active {
        transform: translateY(1px); /* تأثير عند النقر */
    }

.btn-nav {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--border-radius);
    text-transform: capitalize;
}

    .btn-nav:hover {
        transform: translateY(-2px);
        border-color: var(--brand-color);
    }

/* تحسين Breadcrumbs */
.breadcrumbs {
    background: var(--boxColor);
    margin-top: 82px;
    color: var(--primaryColor);
}

    .breadcrumbs ol a {
        color: var(--primaryColor);
        transition: 0.3s;
    }

        .breadcrumbs ol a:hover {
            color: var(--brand-color);
        }

    .breadcrumbs .title-2 {
        margin-top: 20px;
        font-size: 24px;
        color: var(--title-2-color);
        font-weight: bold;
    }

    .breadcrumbs .title-4 {
        color: var(--secendaryColor);
        font-size: 16px;
        margin-top: 10px;
    }

/* تحسين عداد الوقت */
#countdownTimer {
    font-weight: bold;
    font-size: 20px;
    color: var(--brand-color);
    transition: all 0.3s ease-in-out;
}




.exams-section {
    direction: rtl;
    text-align: right;
    font-family: "Tajawal", sans-serif;
    background-color: var(--bodyColor);
    padding-bottom: 50px;
}



.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
}

.question-gridh {
    display: flex; /* لجعل الأزرار في صف أفقي */
    gap: 10px; /* مسافة بين الأزرار */
    justify-content: center; /* توسيط الأزرار أفقيًا */
    flex-wrap: wrap; /* إذا زاد عدد الأزرار يتم الانتقال إلى صفوف جديدة */
}


.question-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--boxColor);
    color: var(--primaryColor);
    border: 1px solid var(--primaryColor);
    border-radius: 5px;
    padding: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

    .question-btn:hover {
        background-color: var(--brand-color);
        color: var(--primaryColor);
        transform: translateY(-3px);
        border-color: var(--brand-color);
    }

    .question-btn.active {
        background-color: var(--brand-color);
        color: var(--primaryColor);
        transform: translateY(-3px);
        border-color: var(--brand-color);
    }


/* تنسيق الأزرار التي تم الإجابة عليها */
a.btn.question-btn.answered {
    background-color: var(--brand-color) !important;
    color: var(--primaryColor) !important;
    transform: translateY(-3px) !important;
    border-color: var(--brand-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease !important;
    cursor: default; /* منع مؤشر الفأرة من التغيير */
}





.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-color);
    margin-bottom: 10px;
    text-transform: capitalize;
}


.exams-option {
    display: block;
    margin-bottom: 15px; /* زيادة المسافة بين الخيارات */
    position: relative;
}

    .exams-option input[type="radio"] {
        display: none;
        direction: ltr;
    }

    .exams-option label {
        display: flex;
        align-items: center;
        cursor: pointer;
        background-color: var(--boxColor);
        padding: 12px 20px;
        border-radius: var(--border-radius);
        transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
        color: var(--primaryColor);
        border: 2px solid var(--boxColor);
        font-size: 16px;
        font-weight: 500;
        position: relative;
        padding-left: 40px; /* مساحة للأيقونة */
    }

        .exams-option label::before {
            content: "";
            position: absolute;
            left: 15px;
            width: 20px;
            height: 20px;
            border: 2px solid var(--primaryColor);
            border-radius: 50%;
            background-color: #fff;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

    .exams-option input[type="radio"]:checked + label::before {
        background-color: var(--brand-color);
        border-color: var(--brand-color);
    }

    .exams-option input[type="radio"]:checked + label::after {
        content: "✔";
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        color: var(--bodyColor);
        font-size: 14px;
    }

    .exams-option input[type="radio"]:checked + label {
        background-color: var(--brand-color);
        color: var(--bodyColor);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .exams-option label:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-color: var(--brand-color);
    }

/* تنسيق إضافي للعناوين */
.question-label {
    font-weight: bold;
    color: var(--forbidden-color);
    margin-right: 5px;
}

.options-label {
    font-weight: bold;
    color: var(--brand-color);
    margin-bottom: 10px;
    margin-left: -20px;
    font-size: 20px !important;
}

/* تحسين تنسيق الأسئلة */
.exams-question {
    font-size: 20px;
    margin-bottom: 15px;
    /*background-color: var(--bodyColor);*/
    background-color: transparent !important;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: var(--primaryColor);
    font-weight: bold;
}

/* تحسين تنسيق الإجابات */
.exams-options legend {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--brand-color);
    display: block; /* تغيير من flex إلى block */
    margin-top: 15px;
}

/* تحسين تنسيق بطاقة التقييم */
.exams-card {
    margin-bottom: 25px;
    padding: 25px;
    background-color: var(--boxColor);
    border: 1px solid var(--brand-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}


.form-control-staticTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--primaryColor);
    font-weight: bold;
}


.input-group-append {
    justify-content: space-between;
    align-items: center;
    direction: ltr;
    margin-bottom: 10px;
    margin-top: 10px;
}



.form-control-static {
    font-size: 16px; /* حجم الخط */
    color: var(--primaryColor); /* لون النص */
    background-color: var(--boxColor); /* لون الخلفية */
    text-align: right; /* محاذاة النص لليمين */
    direction: rtl; /* تأكيد اتجاه النص من اليمين لليسار */
    font-weight: 300;
}

.form-control-static2 {
    font-size: 16px; /* حجم الخط */
    color: var(--brand-color); /* لون النص */
    background-color: var(--boxColor); /* لون الخلفية */
    text-align: right; /* محاذاة النص لليمين */
    direction: rtl; /* تأكيد اتجاه النص من اليمين لليسار */
    font-weight: bold !important;
}

.questioncompleted {
    background-color: var(--boxColor); /* اللون الأساسي */
    pointer-events: none;
    cursor: not-allowed;
    border-color: var(--forbidden-color); /* حدود خفيفة للتنسيق */
}

    /* إضافة خط وسط وعلامة X للإجابات غير المختارة عند اكتمال الامتحان */
    .questioncompleted .exams-option input[type="radio"]:not(:checked) + label {
        text-decoration: line-through;
        color: var(--secendaryColor); /* يمكنك تعديل اللون حسب التصميم */
        opacity: 0.6; /* تقليل الشفافية لإظهار أنها غير نشطة */
        cursor: not-allowed; /* تغيير مؤشر الفأرة للدلالة على عدم التفاعل */
        position: relative; /* لجعل العنصر الأصلي هو المرجع للـ ::after */
    }

        .questioncompleted .exams-option input[type="radio"]:not(:checked) + label::after {
            content: "✖"; /* يمكنك استخدام أيقونة أخرى أو رمز Unicode آخر */
            position: absolute;
            right: 0px; /* مسافة من اليمين؛ قم بتعديلها حسب الحاجة */
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: var(--forbidden-color); /* لون X، يمكنك تعديله حسب التصميم */
        }


.completed-text {
    font-weight: bold;
    color: var(--brand-color);
    margin-right: 5px;
}

.time-red {
    color: var(--forbidden-color) !important;
}

.time-green {
    color: green !important;
}

.available {
    color: var(--brand-color); /* أو اختر اللون الافتراضي الذي تريده */
}

.unavailable {
    color: var(--forbidden-color) !important;
}


body.dark-mode .text-muted {
    color: #888 !important; /* اختر لونًا رماديًا أفتح أو أي لون مناسب */
}


/* الحقول في الوضع العادي (النهاري) */
body:not(.dark-mode) input[type="date"],
body:not(.dark-mode) input[type="time"] {
    color: #000000; /* نص أسود */
}

/* الحقول في وضع الدارك مود */
body.dark-mode input[type="date"],
body.dark-mode input[type="time"] {
    color: #ffffff; /* نص أبيض */
}

    /* تعديل أيقونة التقويم أو الساعة (للمتصفحات المبنية على WebKit) */
    body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
    body.dark-mode input[type="time"]::-webkit-calendar-picker-indicator {
        filter: invert(1);
        /* أو يمكنك استخدام color: أو خواص أخرى بحسب حاجتك */
    }

.nav-item {
    position: relative;
}

/* الدائرة الحمراء الأساسية */
.red-dot {
    position: absolute;
    top: 0; /* عند أعلى العنصر، عدِّل حسب ذوقك */
    left: 50%; /* في منتصفه أفقيًا */
    width: 8px; /* قطر الدائرة */
    height: 8px;
    background-color: red;
    border-radius: 50%;
    display: none; /* مخفية افتراضيًا */
    pointer-events: none;
}

    /* عند الإظهار (HasSeen = false)، نستخدم حركة مستمرة (infinite) */
    .red-dot.show {
        display: block;
        /* Animation مستمر (infinite): مدة 1.2 ثانية مثلاً وبلا توقف */
        animation: bounceInfinite 1.2s infinite ease;
    }

    /* عند الإخفاء نستخدم حركة fadeOut لمرة واحدة */
    .red-dot.hide {
        animation: fadeOut 0.3s forwards;
    }

/* حركة ترددية (bounceInfinite) تكرارية لا نهائية */
@keyframes bounceInfinite {
    0%, 100% {
        transform: translate(-50%, 0) scale(1);
    }

    20% {
        transform: translate(-50%, -5px) scale(1.1);
    }

    40% {
        transform: translate(-50%, 2px) scale(0.95);
    }

    60% {
        transform: translate(-50%, -2px) scale(1.05);
    }

    80% {
        transform: translate(-50%, 1px) scale(0.98);
    }
}

/* حركة الإخفاء (Fade Out) عند النقر */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0);
    }
}


/* لجعل زر الهامبرغر نفسه العنصر المرجعي */
.navbar-toggler {
    position: relative;
}

/* تنسيق النقطة على الزر في وضع الموبايل */
.red-dot.mobile-dot {
    position: absolute;
    /* جرّب تعديل الإحداثيات بما يناسب شكل الزر عندك */
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    z-index: 999;
    animation: bounceIn 0.5s; /* إن أردت حركة */
}


.red-dot.mobile-dot {
    position: absolute;
    top: 10px; /* حسّب الزر لديك */
    right: 10px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    animation: bounceIn 0.5s;
    z-index: 999;
}



.question-section, .comment-section {
    margin-bottom: 15px;
}


.question-text {
    display: inline-block;
}


.comment-text {
    display: inline-block;
    font-weight: normal;
}


/* عنصر يحتوي على الصورة المصغرة */
.question-image-wrapper {
    margin-top: 10px;
    display: inline-block; /* أو flex/inline-flex حسب رغبتك */
    cursor: zoom-in; /* مؤشر يدل على أن الضغط سيكبّر الصورة */
}

/* الصورة المصغرة */
.question-thumbnail {
    max-width: 120px; /* أقصى عرض للصورة المصغرة */
    max-height: 80px; /* أقصى ارتفاع للصورة المصغرة */
    border-radius: 5px; /* لتنعيم الزوايا */
    object-fit: cover; /* لمنع تشوه الصورة */
    transition: transform 0.2s ease;
}

    .question-thumbnail:hover {
        transform: scale(1.05); /* تأثير خفيف عند تمرير الفأرة */
    }

/* تنسيق النافذة المنبثقة (Modal) إن كنت تستخدم Bootstrap 5 */
.modal-elegant {
    background-color: #1c1c1c;
    color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    direction: rtl; /* لأنك تعمل بالعربية */
}

.modal-header-elegant {
    background-color: #21c68b; /* لون العلامة التجارية لديك مثلاً */
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .modal-header-elegant .btn-close {
        position: absolute;
        left: 15px; /* لأن اتجاهك RTL، ضعه يساراً */
    }

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}



.student-image {
    width: 9rem;
    max-width: 400px;
    max-height: 400px;
    object-fit: cover;
    border: 2px solid #ddd;
    /* border-radius: 50%; /* جعل الصورة دائرية */ */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل لتحسين المظهر */
    position: fixed; /* جعل الصورة ثابتة */
    top: 80px; /* المسافة من أعلى الصفحة */
    left: 20px; /* المسافة من اليسار */
    z-index: 1000; /* التأكد من أن الصورة فوق العناصر الأخرى */
    background-color: white; /* خلفية بيضاء لتحسين وضوح الصورة */
    cursor: pointer; /* تغيير شكل المؤشر عند المرور على الصورة */
}

/* لضمان استجابة الصورة على الشاشات الصغيرة */
@@media (max-width: 768px) {
    .student-image {
        width: 100px;
        height: 100px;
        top: 10px;
        left: 10px;
    }
}

/* تعديل الـ padding على الـ breadcrumbs لمنع التداخل مع الصورة الثابتة */
.breadcrumbs {
    padding-top: 180px; /* تأكد من أن الهيدر والمساحات العلوية تمنح مساحة كافية للصورة الثابتة */
}

/* إضافة تأثير تكبير عند النقر على الصورة */
.student-image:active {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* تحسين مظهر أزرار الأسئلة */
.question-btn {
    margin: 2px;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

    .question-btn.active {
        background-color: #007bff;
        color: white;
    }

    .question-btn.answered {
        background-color: #28a745;
        color: white;
    }

/* تمييز السؤال المستهدف */
.exams-card:target {
    background-color: #f9f9f9;
    border-color: #aaa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* تحسين عرض الأسئلة */
.exams-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.question-section {
    margin-bottom: 10px;
}

.comment-section {
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

.exams-options {
    margin-top: 10px;
}

.exams-option {
    margin-bottom: 10px;
}

.button-group {
    margin-top: 20px;
}


/*=============== start custom checkbox style ===============*/
.checkbox-option {
    position: relative;
    display: block;
    margin-bottom: 15px;
    /* سيُعتمد RTL هنا لإننا نريد النص على اليسار والـ CheckBox على اليمين */
    direction: ltr;
}

    .checkbox-option input[type="checkbox"] {
        display: none; /* إخفاء مربع الاختيار الافتراضي */
    }

    .checkbox-option label {
        display: inline-flex; /* وضع العناصر بجانب بعضها */
        flex-direction: row-reverse; /* عكس الترتيب: مربع الاختيار على اليمين والنص على اليسار */
        align-items: center; /* محاذاة عمودية في المنتصف */
        cursor: pointer; /* تغيير شكل المؤشر عند المرور */
        background-color: var(--boxColor);
        padding: 12px 20px; /* مسافة داخلية مناسبة */
        border-radius: var(--border-radius);
        transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
        color: var(--primaryColor);
        border: 2px solid var(--boxColor);
        font-size: 16px;
        font-weight: 500;
        position: relative;
        padding-right: 50px; /* حجز مساحة للأيقونة في الجهة اليمنى */
    }

        /* المربع الفارغ (الإطار) قبل التحديد */
        .checkbox-option label::before {
            content: "";
            position: absolute;
            right: 15px; /* بدل left: لجعل المربع على اليمين */
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border: 2px solid var(--primaryColor); /* لون إطار المربع */
            border-radius: 3px; /* زوايا خفيفة للمربع */
            background-color: #fff; /* خلفية بيضاء بداخله */
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

    /* عند التأشير (الاختيار) */
    .checkbox-option input[type="checkbox"]:checked + label::before {
        background-color: var(--brand-color); /* لون خلفية عند التحديد */
        border-color: var(--brand-color); /* لون إطار المربع عند التحديد */
    }

    /* علامة الصح ✔ */
    .checkbox-option input[type="checkbox"]:checked + label::after {
        content: "✔";
        position: absolute;
        right: 19px; /* ضعه قريبًا من إطار المربع */
        top: 50%;
        transform: translateY(-50%);
        color: var(--bodyColor); /* لون علامة الصح */
        font-size: 14px;
    }

    /* تأثير عند تمرير مؤشر الفأرة */
    .checkbox-option label:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-color: var(--brand-color);
    }
/*=============== end custom checkbox style ===============*/


/*.custom-fixed-top {
    position: fixed;
    top: 10px;*/ /* مسافة 20 بكسل من الأعلى */
/*left: 0;
    width: 100%;
    background-color: var(--boxColor);*/ /* يمكنك تغيير لون الخلفية حسب التصميم */
/*padding: 10px 0;*/ /* حشو علوي وسفلي */
/*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/ /* ظل خفيف للشريط */
/*z-index: 1000;*/ /* للتأكد من أن الشريط فوق باقي المحتويات */
/*transition: top 0.3s ease;*/ /* إضافة انتقال سلس عند تغيير الموضع */
/*}*/


/* التنسيقات العامة */
.sidebar-container {
    position: relative;
    height: calc(100vh - 200px); /* ارتفاع مناسب للشريط الجانبي */
    /*overflow-y: auto;*/ /* تمكين التمرير إذا زاد المحتوى */
}

/*.sticky-action-buttons {
    position: sticky;
    bottom: 20px;*/ /* تثبيت العنصر من الأسفل */
/*margin-top: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}*/


/* للتكيف مع الشاشات الصغيرة */
/*@media (max-width: 768px) {
    .sidebar-container {
        height: auto;*/ /* إلغاء الارتفاع الثابت */
/*}

    .sticky-action-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .question-grid {
        padding-bottom: 120px;*/ /* مساحة لمنع تداخل الأزرار */
/*}
}*/



/* تنسيق الصفحة الخاصة بالوصول المرفوض */
.access-denied-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bodyColor);
}

.access-denied-card {
    max-width: 600px;
    width: 90%;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    background-color: var(--boxColor);
}

    .access-denied-card i {
        font-size: 64px;
        color: var(--forbidden-color);
        margin-bottom: 20px;
    }

    .access-denied-card .title {
        font-size: 48px;
        color: var(--forbidden-color);
        margin-bottom: 20px;
        text-align: center;
    }

    .access-denied-card .subtitle {
        font-size: 20px;
        color: var(--secendaryColor);
        margin-bottom: 30px;
    }

    .access-denied-card .btn-main {
        font-size: 20px;
        padding: 10px 30px;
    }


/* تنسيق النص أسفل اسم المدرّس */
.division-description {
    margin-top: +10px; /* تحريك النص قليلًا للأعلى أو الأسفل حسب ذوقك */
    font-size: 14px; /* حجم الخط */
    direction: rtl;
    text-align: right; /* محاذاة للنص العربي */
    line-height: 1.4; /* ارتفاع السطر */
    margin-bottom: 10px; /* مسافة أسفل النص */
}

/* تنسيق الرابط الخاص بالوصف */
.division-description-link {
    color: var(--forbidden-color); /* نفس لون العلامة التجارية */
    text-decoration: underline; /* وضع خط تحت الرابط */
    transition: color 0.3s ease; /* تأثير سلس عند التحويم */
    font-weight: bold; /* جعل النص غامقًا */
}

    .division-description-link:hover {
        color: var(--primaryColor); /* لون آخر عند التحويم */
        text-decoration: none; /* إزالة التسطير عند التحويم */
    }

/* تنسيق النص العادي بدون رابط */
.division-description-text {
    color: var(--forbidden-color); /* نفس لون العلامة التجارية */
    font-weight: normal; /* الوزن العادي للنص */
    cursor: default; /* تغيير شكل المؤشر إلى الافتراضي */
    transition: color 0.3s ease; /* تأثير سلس عند التحويم */
    font-weight: bold; /* جعل النص غامقًا */
}

/* إزالة التركيز عن الـ checkbox بعد الضغط */
input.form-check-input:focus {
    box-shadow: none !important;
    outline: none !important;
}



.assignment-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.3s;
}

    .assignment-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background: linear-gradient(90deg, #21c68b, #1f9774);
}

.custom-card-header {
    min-height: 80px; /* أو height: 80px; لو بدك ارتفاع ثابت */
    display: flex;
    align-items: center; /* لتوسيط النص عموديًا */
}


/* site.css أو أي ملف أنماط عام */
@keyframes blink-pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(1.12);
    }
}

/* اللون والوميض عندما تكون الجلسة فعّالة */
.live-active {
    color: #28a745; /* أخضر Bootstrap – عدّله كما تشاء */
}

@media (prefers-reduced-motion:no-preference) { /* احترام إعدادات الوصول */
    .live-active {
        animation: blink-pulse 1s infinite;
    }
}



/* اللون + الوميض أثناء البث */
i.live-icon.live-active {
    color: #dc3545 !important; /* أحمر Bootstrap (danger) */
    animation: blink-pulse 1s infinite;
}

/* الحالة غير النشطة */
i.live-icon.live-disabled {
    color: #6c757d !important; /* رمادى Bootstrap (secondary) */
    pointer-events: none; /* يعطِّل النقرات */ /* :contentReference[oaicite:0]{index=0} */
    cursor: not-allowed;
    animation: none; /* أوقف الوميض */
    opacity: .7; /* إضاءة أخف اختيارية */
}
































/* CSS محسن لصفحة إعدادات المحاضرة */

/* تحديد المتغيرات المحلية للصفحة */
.settings-section {
    direction: rtl;
    --brand-color: #21c68b;
    --brand-color-rgb: 33, 198, 139;
    --settings-primary: var(--brand-color);
    --settings-secondary: #343a40;
    --settings-bg: #f8f9fa;
    --settings-hover: #4a90e2;
    --settings-success: #28a745;
    --settings-warning: #ffc107;
    --settings-danger: #dc3545;
    --border-radius: 15px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* تصميم البطاقة الرئيسية */
    .settings-section .settings-card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border: none;
        overflow: hidden;
        max-width: 1000px;
        margin: 0 auto;
    }

        /* تصميم رأس البطاقة */
        .settings-section .settings-card .card-header {
            background: linear-gradient(135deg, var(--brand-color), #4a90e2, #21c68b);
            color: white;
            border: none;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

            .settings-section .settings-card .card-header::before {
                content: '';
                position: absolute;
                top: -50%;
                right: -50%;
                width: 200%;
                height: 200%;
                background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
                animation: shimmer 3s ease-in-out infinite;
            }

@keyframes shimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.settings-section .settings-card .card-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


.settings-section .settings-card .card-header p {
    margin: 0.8rem 0 0 0;
    opacity: 0.95;
    font-size: 1rem;
    font-weight: 300;
    color: white;
}

/* تصميم جسم البطاقة */
.settings-section .settings-card .card-body {
    padding: 2rem;
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
}

/* تصميم عناوين الأقسام */
.settings-section .section-title {
    color: var(--brand-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, var(--brand-color), transparent) bottom/100% 3px no-repeat;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

    .settings-section .section-title::after {
        content: '';
        position: absolute;
        bottom: -3px;
        right: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--brand-color), #4a90e2);
        border-radius: 2px;
    }

    .settings-section .section-title i {
        font-size: 1.4rem;
        background: linear-gradient(135deg, var(--brand-color), #4a90e2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* تصميم مجموعات الإعدادات */
.settings-section .settings-group {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2rem;
    background: white;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

    .settings-section .settings-group::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-color), #4a90e2, #21c68b);
    }

/* تصميم الصفوف المتساوية */
.settings-section .row {
    margin-bottom: 1rem;
    display: flex;
    align-items: stretch;
}

    .settings-section .row:last-child {
        margin-bottom: 0;
    }

/* تصميم الأعمدة المتساوية */
.settings-section .col-md-6 {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
}

/* تصميم عناصر الإعدادات الفردية - متساوية الحجم */
.settings-section .setting-item {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

    .settings-section .setting-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: transparent;
        transition: var(--transition);
    }

    .settings-section .setting-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--brand-color);
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
    }

        .settings-section .setting-item:hover::before {
            background: linear-gradient(180deg, var(--brand-color), #4a90e2);
        }

    /* تصميم محتوى العنصر */
    .settings-section .setting-item .form-check {
        margin-bottom: 0.8rem;
    }

/* تصميم Switch التبديل المحسن */
.settings-section .form-check-input {
    width: 3rem;
    height: 1.6rem;
    border-radius: 1.6rem;
    background-color: #ddd;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    float: left;
    margin-left: 0.8rem;
    margin-top: 0.2rem;
}

    .settings-section .form-check-input::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 1.2rem;
        height: 1.2rem;
        background: white;
        border-radius: 50%;
        transition: var(--transition);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .settings-section .form-check-input:checked {
        background: linear-gradient(135deg, var(--brand-color), #1f9774);
        border-color: var(--brand-color);
        box-shadow: 0 0 0 0.2rem rgba(var(--brand-color-rgb), 0.25), inset 0 2px 4px rgba(0,0,0,0.1);
    }

        .settings-section .form-check-input:checked::after {
            transform: translateX(1.3rem);
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

    .settings-section .form-check-input:focus {
        border-color: var(--brand-color);
        box-shadow: 0 0 0 0.25rem rgba(var(--brand-color-rgb), 0.25);
    }

/* تصميم تسميات الإعدادات */
.settings-section .form-check-label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    flex-grow: 1;
}

    .settings-section .form-check-label:hover {
        color: var(--brand-color);
    }

    .settings-section .form-check-label i {
        font-size: 1.2rem;
        color: var(--brand-color);
        background: linear-gradient(135deg, var(--brand-color), #4a90e2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        flex-shrink: 0;
    }

/* النص التوضيحي */
.settings-section .setting-item small {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
    line-height: 1.4;
    font-style: italic;
    margin-top: auto;
    text-align: right;
    direction: rtl;
}

/* صندوق المعلومات */
.settings-section .info-section .alert {
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-right: 6px solid var(--brand-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
    direction: rtl;
}

    .settings-section .info-section .alert i {
        font-size: 1.5rem;
        color: var(--brand-color);
        flex-shrink: 0;
    }

    .settings-section .info-section .alert div {
        flex-grow: 1;
    }

/* تصميم الأزرار المحسن */
.settings-section .action-buttons {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 2rem;
}

    .settings-section .action-buttons .btn {
        padding: 1rem 2rem;
        border-radius: 25px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: var(--transition);
        margin: 0 0.5rem 1rem 0.5rem;
        font-size: 0.95rem;
        min-width: 200px;
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

        .settings-section .action-buttons .btn::before {
            content: '';
            position: absolute;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: right 0.6s ease;
        }

        .settings-section .action-buttons .btn:hover::before {
            right: 100%;
        }

.settings-section .btn-primary {
    background: linear-gradient(135deg, var(--brand-color), #4a90e2);
    border: none;
    box-shadow: 0 6px 20px rgba(var(--brand-color-rgb), 0.4);
    color: white;
}

    .settings-section .btn-primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(var(--brand-color-rgb), 0.5);
        background: linear-gradient(135deg, #1f9774, #3d7bc6);
    }

.settings-section .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

    .settings-section .btn-secondary:hover {
        background: linear-gradient(135deg, #545b62, #383d41);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
    }

/* تأثير الإعداد النشط */
.settings-section .setting-active {
    border-color: var(--brand-color) !important;
    background: linear-gradient(135deg, #f8f9ff, #fff5f5, #f0fff4) !important;
    box-shadow: 0 6px 20px rgba(var(--brand-color-rgb), 0.2) !important;
    transform: translateY(-1px) !important;
}

    .settings-section .setting-active .form-check-label {
        color: var(--brand-color) !important;
        font-weight: 700 !important;
    }

    .settings-section .setting-active::before {
        background: linear-gradient(180deg, var(--brand-color), #4a90e2) !important;
        width: 6px !important;
    }

    .settings-section .setting-active::after {
        content: '✓';
        position: absolute;
        top: 0.8rem;
        left: 0.8rem;
        background: var(--brand-color);
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: bold;
        animation: popIn 0.3s ease-out;
    }

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* تحذير الدردشة المحسن */
.settings-section #chatWarning {
    animation: slideInDown 0.5s ease-out;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7, #fdcb6e);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    color: #856404;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .settings-section #chatWarning::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, #f39c12, #e67e22);
    }

    .settings-section #chatWarning i {
        color: #f39c12;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .settings-section .settings-card .card-header {
        padding: 1.5rem;
    }

        .settings-section .settings-card .card-header h4 {
            font-size: 1.4rem;
        }


    .settings-section .settings-card .card-body {
        padding: 1.5rem;
    }

    .settings-section .setting-item {
        padding: 1.2rem;
        min-height: 100px;
    }

    .settings-section .action-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
        min-width: auto;
    }

    .settings-section .settings-group {
        padding: 1.5rem;
    }

    .settings-section .section-title {
        font-size: 1.1rem;
    }

    .settings-section .form-check-input {
        width: 2.5rem;
        height: 1.4rem;
    }

        .settings-section .form-check-input::after {
            width: 1rem;
            height: 1rem;
        }

        .settings-section .form-check-input:checked::after {
            transform: translateX(1rem);
        }

    .settings-section .col-md-6 {
        margin-bottom: 1rem;
    }

    .settings-section .row {
        flex-direction: column;
    }
}

/* تحسين للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .settings-section .container {
        padding: 0 10px;
    }

    .settings-section .settings-card {
        margin: 10px;
        border-radius: 15px;
    }

    .settings-section .form-check-label {
        font-size: 0.95rem;
    }

    .settings-section .setting-item {
        padding: 1rem;
        min-height: 90px;
    }

    .settings-section .section-title {
        font-size: 1rem;
    }
}

/* تأثيرات إضافية للتفاعل */
.settings-section .setting-item:active {
    transform: translateY(0) scale(1);
    transition: transform 0.1s ease;
}

.settings-section .btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: transform 0.1s ease;
}

/* تحسين التباعد والتنسيق */
.settings-section .settings-group:last-child {
    margin-bottom: 0;
}

/* تأثير التحميل */
.settings-section .form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

    .settings-section .form-check-input:disabled::after {
        background: #999;
    }

/* تحسين الظلال والألوان في الوضع المظلم */
body.dark-mode .settings-section .settings-card {
    background: var(--boxColor, #2c3e50);
    color: var(--primaryColor, #ffffff);
}

body.dark-mode .settings-section .settings-group {
    background: var(--bodyColor, #34495e);
    border-color: #495057;
}

body.dark-mode .settings-section .setting-item {
    background: linear-gradient(135deg, var(--boxColor, #2c3e50), var(--bodyColor, #34495e));
    border-color: #495057;
    color: var(--primaryColor, #ffffff);
}

body.dark-mode .settings-section .form-check-label {
    color: var(--primaryColor, #ffffff);
}

body.dark-mode .settings-section .form-control,
body.dark-mode .settings-section .form-select {
    background: var(--boxColor, #2c3e50);
    border-color: #495057;
    color: var(--primaryColor, #ffffff);
}

/* تحسين شكل النموذج عامة */
.settings-section .info-section {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* تحسين التركيز وإمكانية الوصول */
.settings-section .form-check-input:focus-visible {
    outline: 3px solid rgba(var(--brand-color-rgb), 0.5);
    outline-offset: 2px;
}

.settings-section .btn:focus-visible {
    outline: 3px solid rgba(var(--brand-color-rgb), 0.5);
    outline-offset: 3px;
}

/* تحسين الحركة والانيميشن */
.settings-section .settings-group {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-section .setting-item {
    animation: fadeInScale 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* تأخير الانيميشن للعناصر */
.settings-section .setting-item:nth-child(1) {
    animation-delay: 0.1s;
}

.settings-section .setting-item:nth-child(2) {
    animation-delay: 0.2s;
}

.settings-section .setting-item:nth-child(3) {
    animation-delay: 0.3s;
}

.settings-section .setting-item:nth-child(4) {
    animation-delay: 0.4s;
}

.settings-section .setting-item:nth-child(5) {
    animation-delay: 0.5s;
}

.settings-section .setting-item:nth-child(6) {
    animation-delay: 0.6s;
}

#disableMic:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

    #disableMic:disabled + label {
        opacity: 0.6;
        cursor: not-allowed;
    }



/* =====================================================
   NexionSys File Upload - إضافات CSS محسنة
   يتم إضافة هذا الكود في نهاية ملف style.css
   ===================================================== */

/* ============== File Upload Components ============== */


.nexion-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--boxColor);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    direction: rtl;
}


.nexion-header {
    background: var(--boxColor);
    padding: 30px;
    text-align: center;
    color: white;
}

    .nexion-header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        color: var(--primaryColor);
    }

    .nexion-header p {
        font-size: 1.1rem;
        opacity: 0.9;
        color: var(--primaryColor);
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حاوي رفع الملفات الرئيسي */
.nexion-upload-container {
    background: var(--boxColor);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    position: relative;
    margin: 2rem auto;
    max-width: 1000px;
}

/* رأس منطقة رفع الملفات */
.nexion-upload-header {
    background: linear-gradient(135deg, var(--brand-color), #4a90e2);
    padding: 2rem;
    text-align: center;
    color: var(--bodyColor);
    position: relative;
    overflow: hidden;
}

    .nexion-upload-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: uploadShimmer 3s ease-in-out infinite;
    }

@keyframes uploadShimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.nexion-upload-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.nexion-upload-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* محتوى رفع الملفات */
.nexion-upload-content {
    padding: 2rem;
    direction: rtl;
}

/* مجموعة حقول النموذج */
.nexion-form-group {
    margin-bottom: 1.5rem;
}

    .nexion-form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--primaryColor);
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.nexion-form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--brand-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--boxColor);
    color: var(--primaryColor);
    transition: var(--transition);
    font-family: "Tajawal", sans-serif;
    direction: rtl;
    text-align: right;
}

    .nexion-form-control:focus {
        outline: none;
        border-color: var(--brand-color);
        box-shadow: 0 0 0 3px rgba(33, 198, 139, 0.1);
        background: var(--bodyColor);
        transform: translateY(-2px);
    }

/* منطقة رفع الملفات */
.nexion-file-upload-area {
    border: 3px dashed var(--brand-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bodyColor);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .nexion-file-upload-area:hover {
        border-color: var(--highlight-color);
        background: var(--boxColor);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(33, 198, 139, 0.15);
    }

    .nexion-file-upload-area.dragover {
        border-color: var(--brand-color);
        background: var(--boxColor);
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(33, 198, 139, 0.3);
    }

    .nexion-file-upload-area.has-files {
        border-style: solid;
        background: var(--brand-color);
        color: var(--bodyColor);
    }

        .nexion-file-upload-area.has-files .nexion-file-upload-icon {
            color: var(--bodyColor);
        }

        .nexion-file-upload-area.has-files .nexion-file-upload-text {
            color: var(--bodyColor);
        }

        .nexion-file-upload-area.has-files .nexion-file-upload-hint {
            color: rgba(255, 255, 255, 0.8);
        }

.nexion-file-upload-icon {
    font-size: 4rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.nexion-file-upload-area:hover .nexion-file-upload-icon {
    color: var(--highlight-color);
    transform: scale(1.1);
}

.nexion-file-upload-text {
    font-size: 1.3rem;
    color: var(--primaryColor);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nexion-file-upload-hint {
    font-size: 0.9rem;
    color: var(--secendaryColor);
    margin-bottom: 1rem;
}

.nexion-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.nexion-file-info {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    border-left: 4px solid #4facfe;
}

.nexion-file-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.nexion-file-icon {
    font-size: 2rem;
    color: #4facfe;
}

.nexion-file-meta h4 {
    color: #2d3748;
    margin-bottom: 5px;
}

.nexion-file-meta p {
    color: #718096;
    font-size: 0.9rem;
}

/* معلومات الملفات */
.nexion-files-info {
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    border-right: 4px solid var(--brand-color);
}

.nexion-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--boxColor);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

    .nexion-file-item:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.nexion-file-icon {
    font-size: 2rem;
    color: var(--brand-color);
    flex-shrink: 0;
}

.nexion-file-meta {
    flex-grow: 1;
}

    .nexion-file-meta h4 {
        color: var(--title-2-color);
        margin-bottom: 0.3rem;
        font-size: 1rem;
        word-break: break-word;
    }

    .nexion-file-meta p {
        color: var(--secendaryColor);
        font-size: 0.9rem;
        margin: 0;
    }

.nexion-file-remove {
    background: var(--forbidden-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .nexion-file-remove:hover {
        background: #b71c1c;
        transform: scale(1.1);
    }

/* إحصائيات الملفات */
.nexion-files-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--brand-color);
    color: var(--bodyColor);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.nexion-stat-item {
    text-align: center;
    flex: 1;
}

.nexion-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.nexion-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* شريط التقدم */
.nexion-progress-container {
    background: var(--secendaryColor);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.nexion-progress-bar {
    background: linear-gradient(90deg, var(--brand-color), var(--highlight-color));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
}

    .nexion-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: progressShine 2s infinite;
    }

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.nexion-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--brand-color);
}

/* أزرار رفع الملفات */
.nexion-upload-btn {
    background: linear-gradient(135deg, var(--brand-color), #4a90e2);
    color: var(--bodyColor);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    font-family: "Tajawal", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .nexion-upload-btn::before {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: right 0.6s ease;
    }

    .nexion-upload-btn:hover::before {
        right: 100%;
    }

    .nexion-upload-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(33, 198, 139, 0.3);
    }

    .nexion-upload-btn:active {
        transform: translateY(0);
    }

    .nexion-upload-btn:disabled {
        background: var(--secendaryColor);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.nexion-upload-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: nexionSpin 1s linear infinite;
}

@keyframes nexionSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* تنبيهات رفع الملفات */
.nexion-upload-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: none;
    align-items: center;
    gap: 1rem;
    animation: nexionSlideIn 0.3s ease-out;
    font-weight: 500;
}

@keyframes nexionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nexion-upload-alert.success {
    background: var(--brand-color);
    color: var(--bodyColor);
    border-right: 4px solid #1f9774;
}

.nexion-upload-alert.error {
    background: var(--forbidden-color);
    color: var(--bodyColor);
    border-right: 4px solid #b71c1c;
}

.nexion-upload-alert.warning {
    background: var(--highlight-color);
    color: var(--bodyColor);
    border-right: 4px solid #f57c00;
}

/* حاوي الاستجابة */
.nexion-response-container {
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    border-right: 4px solid var(--brand-color);
}

    .nexion-response-container h3 {
        color: var(--brand-color);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.2rem;
    }

.nexion-response-json {
    background: var(--dark-brand-color);
    color: var(--brand-color);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    direction: ltr;
    text-align: left;
    border: 1px solid var(--brand-color);
}

/* الصيغ المدعومة */
.nexion-supported-formats {
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    border-right: 4px solid var(--brand-color);
}

    .nexion-supported-formats h3 {
        color: var(--brand-color);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.2rem;
    }

.nexion-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.nexion-format-item {
    background: var(--boxColor);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

    .nexion-format-item:hover {
        transform: translateY(-5px);
        border-color: var(--brand-color);
        box-shadow: 0 8px 20px rgba(33, 198, 139, 0.2);
    }

    .nexion-format-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: var(--brand-color);
    }

    .nexion-format-item h4 {
        color: var(--title-2-color);
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .nexion-format-item p {
        color: var(--secendaryColor);
        font-size: 0.8rem;
    }


audio-format {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-left: 4px solid #1e90ff;
}

.audio-format i {
    color: var(--brand-color);
}

.audio-format h4 {
    color: var(--primaryColor);
}

/* تبديل الوضع المظلم */
.nexion-theme-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bodyColor);
    font-size: 1.2rem;
    z-index: 10;
}

    .nexion-theme-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

/* حالة التحميل */
.nexion-uploading .nexion-upload-container {
    pointer-events: none;
}

.nexion-uploading .nexion-file-upload-area {
    opacity: 0.7;
}

/* تحسينات الاستجابة للجوال */
@media (max-width: 768px) {
    .nexion-upload-container {
        margin: 10px;
        border-radius: 10px;
    }

    .nexion-upload-content {
        padding: 1.5rem;
    }

    .nexion-upload-header h1 {
        font-size: 2rem;
    }

    .nexion-file-upload-area {
        padding: 2rem 1rem;
    }

    .nexion-format-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .nexion-upload-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .nexion-files-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nexion-stat-item {
        text-align: center;
    }

    .nexion-file-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .nexion-file-meta {
        order: 2;
    }

    .nexion-file-remove {
        order: 3;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .nexion-upload-header {
        padding: 1.5rem;
    }

        .nexion-upload-header h1 {
            font-size: 1.8rem;
        }

    .nexion-upload-content {
        padding: 1rem;
    }

    .nexion-file-upload-area {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    .nexion-file-upload-icon {
        font-size: 3rem;
    }

    .nexion-file-upload-text {
        font-size: 1.1rem;
    }

    .nexion-theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* تحسينات للوضع المظلم */
body.dark-mode .nexion-upload-container {
    background: var(--boxColor);
    color: var(--primaryColor);
}

body.dark-mode .nexion-files-info {
    background: var(--bodyColor);
}

body.dark-mode .nexion-file-item {
    background: var(--boxColor);
}

body.dark-mode .nexion-supported-formats {
    background: var(--bodyColor);
}

body.dark-mode .nexion-format-item {
    background: var(--boxColor);
}

body.dark-mode .nexion-response-container {
    background: var(--bodyColor);
}

body.dark-mode .nexion-response-json {
    background: var(--dark-brand-color);
    border-color: var(--brand-color);
}

/* انيميشن للتحسين البصري */
@keyframes nexionFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nexion-upload-container {
    animation: nexionFadeInUp 0.6s ease-out;
}

/* تحسينات إضافية للتفاعل */
.nexion-file-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.nexion-file-item:nth-child(even) {
    animation-delay: 0.2s;
}

.nexion-format-item:nth-child(1) {
    animation-delay: 0.1s;
}

.nexion-format-item:nth-child(2) {
    animation-delay: 0.2s;
}

.nexion-format-item:nth-child(3) {
    animation-delay: 0.3s;
}

.nexion-format-item:nth-child(4) {
    animation-delay: 0.4s;
}

.nexion-format-item:nth-child(5) {
    animation-delay: 0.5s;
}

.nexion-format-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* أزرار إضافية للتحكم */
.nexion-upload-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nexion-control-btn {
    background: var(--boxColor);
    color: var(--primaryColor);
    border: 2px solid var(--brand-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: "Tajawal", sans-serif;
}

    .nexion-control-btn:hover {
        background: var(--brand-color);
        color: var(--bodyColor);
        transform: translateY(-2px);
    }

/* استايل لحالة التحديد */
.nexion-form-control option {
    background: var(--boxColor);
    color: var(--primaryColor);
    padding: 10px;
}

/* تحسين استايل المنطقة المختارة */
::selection {
    background-color: var(--brand-color);
    color: var(--bodyColor);
}

/* تحسين scrollbar للاستجابة */
.nexion-response-json::-webkit-scrollbar {
    width: 8px;
}

.nexion-response-json::-webkit-scrollbar-track {
    background: var(--secendaryColor);
    border-radius: 4px;
}

.nexion-response-json::-webkit-scrollbar-thumb {
    background: var(--brand-color);
    border-radius: 4px;
}

    .nexion-response-json::-webkit-scrollbar-thumb:hover {
        background: var(--highlight-color);
    }

/* تأثيرات إضافية للملفات */
.nexion-file-item.uploading {
    opacity: 0.7;
    pointer-events: none;
}

.nexion-file-item.success {
    border-right: 4px solid var(--brand-color);
    background: rgba(33, 198, 139, 0.1);
}

.nexion-file-item.error {
    border-right: 4px solid var(--forbidden-color);
    background: rgba(211, 47, 47, 0.1);
}

/* رسائل الحالة للملفات */
.nexion-file-status {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .nexion-file-status.uploading {
        background: var(--highlight-color);
        color: var(--bodyColor);
    }

    .nexion-file-status.success {
        background: var(--brand-color);
        color: var(--bodyColor);
    }

    .nexion-file-status.error {
        background: var(--forbidden-color);
        color: var(--bodyColor);
    }

/* تحسينات أخيرة للتوافق مع النظام */
.nexion-upload-container .title {
    text-align: center;
}

.nexion-upload-container .title-2 {
    color: var(--brand-color);
    text-align: center;
}

.nexion-upload-container .pretitle {
    color: var(--brand-color);
    text-align: center;
    margin-bottom: 1rem;
}


.nexion-alert-success {
    background: var(--brand-color);
    color: var(--bodyColor);
    border-right: 4px solid #1f9774;
}

.nexion-alert-error {
    background: var(--forbidden-color);
    color: var(--bodyColor);
    border-right: 4px solid #b71c1c;
}

.nexion-alert-warning {
    background: var(--highlight-color);
    color: var(--bodyColor);
    border-right: 4px solid #f57c00;
}

/* الأزرار */
.nexion-btn {
    background: linear-gradient(135deg, var(--brand-color), #4a90e2);
    color: var(--bodyColor);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    font-family: "Tajawal", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .nexion-btn::before {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: right 0.6s ease;
    }

    .nexion-btn:hover::before {
        right: 100%;
    }

    .nexion-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(33, 198, 139, 0.3);
    }

    .nexion-btn:active {
        transform: translateY(0);
    }

    .nexion-btn:disabled {
        background: var(--secendaryColor);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .nexion-btn .spinner {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top: 2px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }


/* التنبيهات */
.nexion-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: none;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* منطقة رفع الملفات */
.file-upload-area {
    border: 3px dashed var(--brand-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bodyColor);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .file-upload-area:hover {
        border-color: var(--highlight-color);
        background: var(--boxColor);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(33, 198, 139, 0.15);
    }

    .file-upload-area.dragover {
        border-color: var(--brand-color);
        background: var(--boxColor);
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(33, 198, 139, 0.3);
    }

.file-upload-icon {
    font-size: 4rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.file-upload-area:hover .file-upload-icon {
    color: var(--highlight-color);
    transform: scale(1.1);
}

.file-upload-text {
    font-size: 1.3rem;
    color: var(--primaryColor);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: var(--secendaryColor);
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* معلومات الملفات */
.files-info {
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    border-right: 4px solid var(--brand-color);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--boxColor);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

    .file-item:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.file-icon {
    font-size: 2rem;
    color: var(--brand-color);
    flex-shrink: 0;
}

.file-meta {
    flex-grow: 1;
}

    .file-meta h4 {
        color: var(--title-2-color);
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }

    .file-meta p {
        color: var(--secendaryColor);
        font-size: 0.9rem;
        margin: 0;
    }

.file-remove {
    background: var(--forbidden-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-remove:hover {
        background: #b71c1c;
        transform: scale(1.1);
    }


.nexion-form-container {
    padding: 40px;
}

@media (max-width: 768px) {
    .nexion-container {
        margin: 10px;
    }

    .nexion-form-container {
        padding: 20px;
    }

    .nexion-header h1 {
        font-size: 2rem;
    }

    .nexion-format-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}




/* ============== Folder Info Enhanced - Final Version ============== */

.folder-info-enhanced {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 18px 24px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

    .folder-info-enhanced::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--brand-color), var(--highlight-color), var(--brand-color) );
        animation: folderGlow 3s ease-in-out infinite;
    }

@keyframes folderGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.folder-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand-color);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: "Tajawal", sans-serif;
}

    .folder-breadcrumb .folder-icon {
        color: var(--brand-color);
        font-size: 1rem;
        margin-left: 5px;
        transition: var(--transition);
    }

    .folder-breadcrumb .separator {
        color: var(--brand-color);
        font-weight: 300;
        margin: 0 5px;
        opacity: 0.8;
    }

    .folder-breadcrumb .main-folder {
        background: rgba(255, 255, 255, 0.2);
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: var(--brand-color);
        display: flex;
        align-items: center;
        gap: 5px;
        transition: var(--transition);
    }

    .folder-breadcrumb .sub-folder {
        background: rgba(255, 255, 255, 0.15);
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 500;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--brand-color);
        display: flex;
        align-items: center;
        gap: 5px;
        transition: var(--transition);
    }

.folder-info-enhanced:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

    .folder-info-enhanced:hover .folder-icon {
        transform: scale(1.1);
        color: var(--brand-color);
    }

    .folder-info-enhanced:hover .main-folder {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .folder-info-enhanced:hover .sub-folder {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* للوضع المظلم */
body.dark-mode .folder-info-enhanced {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

    body.dark-mode .folder-info-enhanced:hover {
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
    }

body.dark-mode .folder-breadcrumb .main-folder {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .folder-breadcrumb .sub-folder {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .folder-info-enhanced:hover .main-folder {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .folder-info-enhanced:hover .sub-folder {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .folder-info-enhanced {
        padding: 15px 20px;
        margin-top: 15px;
    }

    .folder-breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

        .folder-breadcrumb .main-folder,
        .folder-breadcrumb .sub-folder {
            padding: 3px 8px;
            font-size: 0.8rem;
        }

        .folder-breadcrumb .folder-icon {
            font-size: 0.9rem;
        }
}

@media (max-width: 480px) {
    .folder-info-enhanced {
        padding: 12px 16px;
    }

    .folder-breadcrumb {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 8px;
    }

        .folder-breadcrumb .separator {
            transform: rotate(90deg);
            margin: 0;
        }
}



/* ============== End File Upload Components ============== */










/* تصميم صفحة إدارة الملفات */
.file-management-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.page-header {
    background: var(--brand-color);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: start;
    direction: rtl;
}

    .page-header h1 {
        margin: 0;
        font-size: 2.2rem;
        font-weight: 600;
        color: var(--primaryColor)
    }

    .page-header p {
        margin: 10px 0 0 0;
        opacity: 0.9;
        color: var(--primaryColor)
    }

.filters-section {
    background: var(--boxColor);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

    .filter-group label {
        font-weight: 600;
        color: var(--primaryColor);
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    .filter-group select,
    .filter-group input {
        padding: 10px 12px;
        border: 2px solid #e1e5e9;
        border-radius: 8px;
        font-size: 14px;
        transition: border-color 0.3s ease;
        background-color: white;
    }

        .filter-group select:focus,
        .filter-group input:focus {
            border-color: var(--brand-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(33, 198, 139, 0.1);
        }

.btn-filter {
    background-color: var(--brand-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-filter:hover {
        background-color: var(--primaryColor);
        transform: translateY(-2px);
    }

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.file-card {
    background: var(--boxColor);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
    position: relative;
    overflow: hidden;
    border-right: 3px solid var(--brand-color);
}

    .file-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.file-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.file-icon {
    font-size: 2.5rem;
    margin-left: 15px;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

    .file-icon.pdf {
        color: #dc3545;
    }

    .file-icon.word {
        color: #0d6efd;
    }

    .file-icon.excel {
        color: #198754;
    }

    .file-icon.image {
        color: #fd7e14;
    }

    .file-icon.video {
        color: #6f42c1;
    }

    .file-icon.default {
        color: #6c757d;
    }

.file-info {
    flex: 1;
    min-width: 0;
}

    .file-info h4 {
        margin: 0 0 8px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primaryColor);
        word-break: break-word;
        line-height: 1.3;
        text-align: start;

        /* تحديد ارتفاع ثابت لسطرين */
        height: 2.6em; /* 1.3 line-height × 2 lines = 2.6em */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        /* للتأكد من التوافق مع المتصفحات القديمة */
        text-overflow: ellipsis;
    }

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .file-meta span {
        font-size: 0.85rem;
        color: var(--primaryColor);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .file-meta i {
        width: 12px;
        color: var(--brand-color);
    }

.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
    flex-wrap: wrap;
}

.btn-action {
    background: none;
    border: 1px solid #e1e5e9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    flex: 1;
    justify-content: center;
    min-width: 70px;
}

.btn-view {
    border-color: var(--brand-color);
    color: var(--brand-color);
}

    .btn-view:hover {
        background-color: var(--brand-color);
        color: white;
    }

.btn-download {
    border-color: #0d6efd;
    color: #0d6efd;
}

    .btn-download:hover {
        background-color: #0d6efd;
        color: white;
        text-decoration: none;
    }

.btn-delete {
    border-color: #dc3545;
    color: #dc3545;
}

    .btn-delete:hover {
        background-color: #dc3545;
        color: white;
    }

.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--primaryColor);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-files-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

    .no-files-message i {
        font-size: 4rem;
        color: #ccc;
        margin-bottom: 20px;
    }

    .no-files-message h3 {
        margin: 0 0 10px 0;
        color: #333;
    }

/* تصميم النوافذ المنبثقة */
.delete-confirmation {
    text-align: center;
    padding: 20px;
}

    .delete-confirmation i {
        font-size: 3rem;
        color: var(--primaryColor);
        margin-bottom: 15px;
    }

    .delete-confirmation h4 {
        margin: 0 0 15px 0;
        color: var(--primaryColor);
    }

    .delete-confirmation p {
        /*background-color: #f8f9fa;*/
        padding: 10px;
        border-radius: 6px;
        font-weight: 600;
        color: var(--primaryColor);
        word-break: break-word;
    }

.warning-text {
    background-color: var(--boxColor);
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    color: var(--primaryColor);
    font-size: 0.9rem;
}

    .warning-text i {
        margin-left: 5px;
    }

/* أزرار النوافذ المنبثقة */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

    .btn-danger:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

/* تصميم معاينة الملفات */
#filePreviewContent {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #filePreviewContent .text-center {
        padding: 40px;
    }

    #filePreviewContent .btn-download {
        background-color: var(--brand-color);
        color: white;
        padding: 12px 24px;
        border-radius: 8px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        transition: background-color 0.3s ease;
    }

        #filePreviewContent .btn-download:hover {
            background-color: var(--primaryColor);
            text-decoration: none;
            color: white;
        }

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .file-management-container {
        padding: 15px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .files-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .file-header {
        flex-direction: column;
        text-align: center;
    }

    .file-icon {
        margin: 0 0 10px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}





/* أزرار تغيير طريقة العرض */
.view-toggle {
    display: flex;
    justify-content: start;
    gap: 0;
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    padding: 5px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
}

.view-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: calc(var(--border-radius) - 3px);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--secendaryColor);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Tajawal", sans-serif;
}

    .view-btn.active {
        background: var(--brand-color);
        color: var(--bodyColor);
        box-shadow: 0 2px 8px rgba(33, 198, 139, 0.3);
        transform: translateY(-1px);
    }

    .view-btn:hover:not(.active) {
        background: rgba(33, 198, 139, 0.1);
        color: var(--brand-color);
    }

/* عرض القائمة */
.files-list {
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    margin-bottom: 30px;
}

.list-header {
    background: var(--brand-color);
    padding: 20px 25px;
    display: grid;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: "Tajawal", sans-serif;
}

.list-body {
    max-height: 600px;
    overflow-y: auto;
    background: var(--bodyColor);
}

.list-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 20px;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    align-items: center;
    background: var(--bodyColor);
}

    .list-row:hover {
        background: rgba(33, 198, 139, 0.05);
        transform: translateX(-3px);
        border-right: 3px solid var(--brand-color);
    }

    .list-row:last-child {
        border-bottom: none;
    }

.list-col {
    display: flex;
    align-items: center;
    color: var(--primaryColor);
}

.col-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon-small {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--bodyColor);
    background: var(--brand-color);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(33, 198, 139, 0.3);
}

    .file-icon-small.pdf {
        background: linear-gradient(135deg, #dc3545, #c82333);
    }

    .file-icon-small.word {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    }

    .file-icon-small.excel {
        background: linear-gradient(135deg, #198754, #157347);
    }

    .file-icon-small.image {
        background: linear-gradient(135deg, #fd7e14, #e55a00);
    }

    .file-icon-small.video {
        background: linear-gradient(135deg, #6f42c1, #5a2d91);
    }

.file-name {
    color: var(--primaryColor);
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
    font-family: "Tajawal", sans-serif;
}

.col-size,
.col-date,
.col-folder {
    color: var(--secendaryColor);
    font-size: 0.9rem;
    font-family: "Tajawal", sans-serif;
}

.list-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-action-small {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .btn-action-small.btn-view {
        background: linear-gradient(135deg, var(--brand-color), #1a7a5e);
        color: var(--bodyColor);
    }

    .btn-action-small.btn-download {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        color: var(--bodyColor);
    }

    .btn-action-small.btn-delete {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: var(--bodyColor);
    }

    .btn-action-small:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .btn-action-small.btn-view:hover {
        box-shadow: 0 4px 12px rgba(33, 198, 139, 0.4);
    }

    .btn-action-small.btn-download:hover {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }

    .btn-action-small.btn-delete:hover {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

/* تخصيص scrollbar للقائمة */
.list-body::-webkit-scrollbar {
    width: 6px;
}

.list-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.list-body::-webkit-scrollbar-thumb {
    background: var(--brand-color);
    border-radius: 3px;
}

    .list-body::-webkit-scrollbar-thumb:hover {
        background: var(--primaryColor);
    }

/* للوضع المظلم */
body.dark-mode .files-list {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .list-body {
    background: var(--boxColor);
}

body.dark-mode .list-row {
    background: var(--boxColor);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

    body.dark-mode .list-row:hover {
        background: rgba(33, 198, 139, 0.1);
    }

body.dark-mode .view-toggle {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 1200px) {
    .list-header,
    .list-row {
        grid-template-columns: 2fr 0.8fr 0.8fr 1fr 0.8fr;
        gap: 15px;
        font-size: 0.85rem;
        padding: 15px 20px;
    }

    .file-icon-small {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .btn-action-small {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* إخفاء عرض القائمة في الشاشات الصغيرة */
@media (max-width: 768px) {
    .view-toggle {
        display: none;
    }

    .files-list {
        display: none !important;
    }
}

/* تحسينات إضافية للتفاعل */
.list-row {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأخير الانيميشن للصفوف */
.list-row:nth-child(1) {
    animation-delay: 0.05s;
}

.list-row:nth-child(2) {
    animation-delay: 0.1s;
}

.list-row:nth-child(3) {
    animation-delay: 0.15s;
}

.list-row:nth-child(4) {
    animation-delay: 0.2s;
}

.list-row:nth-child(5) {
    animation-delay: 0.25s;
}

/* Focus states للوصولية */
.view-btn:focus,
.btn-action-small:focus {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}


.btn-back {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .btn-back:hover {
        background: linear-gradient(135deg, #5a6268, #495057);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .btn-back:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .btn-back i {
        font-size: 14px;
    }

/* ============== End List View Enhancement ============== */

/* ============== تحسين تصميم قائمة الملفات ============== */

/* أزرار تغيير طريقة العرض المحسنة */
.view-toggle {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    background: var(--boxColor);
    border-radius: var(--border-radius);
    padding: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(33, 198, 139, 0.1);
    position: relative;
    overflow: hidden;
}

    .view-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand-color), var(--highlight-color), var(--brand-color));
        animation: viewToggleGlow 3s ease-in-out infinite;
    }

@keyframes viewToggleGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.view-btn {
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-radius: calc(var(--border-radius) - 5px);
    cursor: pointer;
    transition: var(--transition);
    color: var(--secendaryColor);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Tajawal", sans-serif;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}

    .view-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }

    .view-btn.active {
        background: linear-gradient(135deg, var(--brand-color), #1f9774);
        color: var(--bodyColor);
        box-shadow: 0 6px 20px rgba(33, 198, 139, 0.4);
        transform: translateY(-2px);
        font-weight: 700;
    }

        .view-btn.active::before {
            left: 100%;
        }

    .view-btn:hover:not(.active) {
        background: rgba(33, 198, 139, 0.1);
        color: var(--brand-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 198, 139, 0.2);
    }

    .view-btn i {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    .view-btn.active i {
        transform: scale(1.1);
    }

/* تصميم القائمة المحسن */
.files-list {
    background: var(--boxColor);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(33, 198, 139, 0.1);
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(10px);
}

    .files-list::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-color), var(--highlight-color), var(--brand-color));
        animation: listHeaderGlow 4s ease-in-out infinite;
    }

@keyframes listHeaderGlow {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* رأس القائمة المحسن */
.list-header {
    background: var(--brand-color);
    padding: 25px 30px;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr 1.5fr 1fr;
    gap: 20px;
    font-weight: 700;
    font-size: 16px;
    font-family: "Tajawal", sans-serif;
    color: var(--bodyColor);
    position: relative;
    overflow: hidden;
}

    .list-header::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: headerShimmer 5s ease-in-out infinite;
    }

@keyframes headerShimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.list-header .list-col {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .list-header .list-col i {
        font-size: 14px;
        opacity: 0.9;
    }

/* محتوى القائمة */
.list-body {
    max-height: 600px;
    overflow-y: auto;
    background: var(--bodyColor);
    position: relative;
}

/* تحسين الصفوف */
.list-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr 1.5fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(33, 198, 139, 0.1);
    transition: var(--transition);
    align-items: center;
    background: var(--bodyColor);
    position: relative;
    overflow: hidden;
}

    .list-row::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, var(--brand-color), rgba(33, 198, 139, 0.1));
        transition: width 0.4s ease;
        z-index: 0;
    }

    .list-row:hover::before {
        width: 100%;
    }

    .list-row:hover {
        background: transparent;
        transform: translateX(-5px);
        box-shadow: 0 6px 20px rgba(33, 198, 139, 0.15);
        border-radius: 0 12px 12px 0;
    }

        .list-row:hover .list-col {
            position: relative;
            z-index: 1;
        }

        .list-row:hover .file-name {
            color: var(--bodyColor);
            font-weight: 700;
        }

        .list-row:hover .col-size,
        .list-row:hover .col-date,
        .list-row:hover .col-folder {
            color: rgba(255, 255, 255, 0.9);
        }

    .list-row:last-child {
        border-bottom: none;
    }

/* تحسين العمود الأول (اسم الملف) */
.col-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon-small {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bodyColor);
    background: var(--brand-color);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(33, 198, 139, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

    .file-icon-small::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
        transform: scale(0);
        transition: transform 0.3s ease;
    }

.list-row:hover .file-icon-small::before {
    transform: scale(1);
    animation: iconPulse 0.6s ease-out;
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ألوان مختلفة لأنواع الملفات */
.file-icon-small.pdf {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.file-icon-small.word {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.file-icon-small.excel {
    background: linear-gradient(135deg, #198754, #157347);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.file-icon-small.image {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4);
}

.file-icon-small.video {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.file-name {
    color: var(--primaryColor);
    font-weight: 600;
    font-size: 16px;
    word-break: break-word;
    font-family: "Tajawal", sans-serif;
    line-height: 1.4;
    transition: var(--transition);
}

/* بقية الأعمدة */
.col-size,
.col-date,
.col-folder {
    color: var(--secendaryColor);
    font-size: 14px;
    font-family: "Tajawal", sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

/* أزرار الإجراءات المحسنة */
.list-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.btn-action-small {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .btn-action-small::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .btn-action-small:hover::before {
        width: 100%;
        height: 100%;
    }

    .btn-action-small.btn-view {
        background: linear-gradient(135deg, var(--brand-color), #1f9774);
        color: var(--bodyColor);
    }

    .btn-action-small.btn-download {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        color: var(--bodyColor);
    }

    .btn-action-small.btn-delete {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: var(--bodyColor);
    }

    .btn-action-small:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .btn-action-small.btn-view:hover {
        box-shadow: 0 8px 20px rgba(33, 198, 139, 0.5);
    }

    .btn-action-small.btn-download:hover {
        box-shadow: 0 8px 20px rgba(13, 110, 253, 0.5);
    }

    .btn-action-small.btn-delete:hover {
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
    }

/* تحسين scrollbar */
.list-body::-webkit-scrollbar {
    width: 8px;
}

.list-body::-webkit-scrollbar-track {
    background: rgba(33, 198, 139, 0.1);
    border-radius: 4px;
}

.list-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-color), #1f9774);
    border-radius: 4px;
    transition: background 0.3s ease;
}

    .list-body::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #1f9774, var(--brand-color));
    }

/* انيميشن دخول الصفوف */
.list-row {
    animation: slideInFromRight 0.6s ease forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تأخير الانيميشن للصفوف */
.list-row:nth-child(1) {
    animation-delay: 0.1s;
}

.list-row:nth-child(2) {
    animation-delay: 0.2s;
}

.list-row:nth-child(3) {
    animation-delay: 0.3s;
}

.list-row:nth-child(4) {
    animation-delay: 0.4s;
}

.list-row:nth-child(5) {
    animation-delay: 0.5s;
}

.list-row:nth-child(6) {
    animation-delay: 0.6s;
}

.list-row:nth-child(7) {
    animation-delay: 0.7s;
}

.list-row:nth-child(8) {
    animation-delay: 0.8s;
}

/* حالة التحميل للقائمة */
.files-list.loading {
    opacity: 0.7;
    pointer-events: none;
}

    .files-list.loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        z-index: 100;
    }

/* حالة فارغة محسنة */
.no-files-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--secendaryColor);
    background: var(--bodyColor);
    border-radius: var(--border-radius);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

    .no-files-message::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-color), var(--highlight-color), var(--brand-color));
        opacity: 0.5;
    }

    .no-files-message i {
        font-size: 5rem;
        color: rgba(33, 198, 139, 0.3);
        margin-bottom: 20px;
        animation: floatIcon 3s ease-in-out infinite;
    }

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.no-files-message h3 {
    margin: 0 0 15px 0;
    color: var(--primaryColor);
    font-size: 1.5rem;
    font-weight: 600;
}

.no-files-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* تحسينات للوضع المظلم */
body.dark-mode .files-list {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .list-body {
    background: var(--boxColor);
}

body.dark-mode .list-row {
    background: var(--boxColor);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

    body.dark-mode .list-row:hover {
        background: transparent;
    }

body.dark-mode .view-toggle {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .no-files-message {
    background: var(--boxColor);
}

/* تحسينات الاستجابة */
@media (max-width: 1200px) {
    .list-header,
    .list-row {
        grid-template-columns: 2fr 0.8fr 1fr 1.2fr 0.8fr;
        gap: 15px;
        font-size: 14px;
        padding: 18px 25px;
    }

    .file-icon-small {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .btn-action-small {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .view-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 100px;
    }
}

@media (max-width: 992px) {
    .list-header,
    .list-row {
        grid-template-columns: 2fr 0.7fr 0.9fr 1fr 0.7fr;
        gap: 12px;
        padding: 15px 20px;
    }

    .file-name {
        font-size: 14px;
    }

    .col-size,
    .col-date,
    .col-folder {
        font-size: 12px;
    }
}

/* إخفاء في الشاشات الصغيرة جداً */
@media (max-width: 768px) {
    .view-toggle {
        display: none;
    }

    .files-list {
        display: none !important;
    }
}

/* تحسينات الوصولية */
.view-btn:focus,
.btn-action-small:focus {
    outline: 3px solid rgba(33, 198, 139, 0.5);
    outline-offset: 2px;
}

.list-row:focus-within {
    box-shadow: 0 0 0 3px rgba(33, 198, 139, 0.3);
    border-radius: 0 12px 12px 0;
}

/* تأثيرات إضافية للتفاعل */
.file-icon-small:hover {
    transform: scale(1.1) rotate(5deg);
}

.list-row:hover .file-icon-small {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(33, 198, 139, 0.5);
}

/* تحسين عرض المعلومات */
.list-col {
    position: relative;
}

    .list-col[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        right: 0;
        background: var(--dark-brand-color);
        color: var(--bodyColor);
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* تحسين حالة التحديد */
.list-row.selected {
    background: rgba(33, 198, 139, 0.1);
    border-right: 4px solid var(--brand-color);
}

    .list-row.selected::before {
        width: 100%;
    }

/* انيميشن للأزرار */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-action-small:active {
    animation: buttonPulse 0.2s ease;
}

.disk-info-card {
    background: var(--bodyColor);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

    .disk-info-card:hover {
        transform: translateY(-5px);
    }


system-info-card {
    background: var(--bodyColor);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.system-info-card:hover {
    transform: translateY(-5px);
}


.disk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.disk-icon {
    font-size: 3rem;
    color: #667eea;
    margin-left: 15px;
}

.disk-title {
    flex: 1;
}

    .disk-title h2 {
        color: #333;
        margin-bottom: 5px;
    }

    .disk-title p {
        color: #666;
        font-size: 0.9rem;
    }

.refresh-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .refresh-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .refresh-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* تحسينات للوضع المظلم */
body.dark-mode .stats-card {
    background: linear-gradient(135deg, var(--boxColor), var(--bodyColor));
}

body.dark-mode .filter-section {
    background: var(--boxColor);
}

body.dark-mode .search-input,
body.dark-mode .date-filter {
    background: var(--boxColor);
    color: var(--primaryColor);
}

body.dark-mode .filter-btn {
    background: var(--boxColor);
    color: var(--primaryColor);
}

body.dark-mode .no-results {
    background: var(--boxColor);
}

body.dark-mode .table {
    background: var(--boxColor);
}

    body.dark-mode .table tbody tr {
        background: var(--boxColor);
    }

body.dark-mode .custom-alert {
    background: var(--boxColor);
}

/* انيميشن fadeInUp للعناصر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .filter-section {
        padding: 1.5rem;
    }

    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        margin: 0.2rem;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

   /* .table thead th {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .table tbody td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }*/

    .custom-alert {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

        .custom-alert i {
            margin: 0 0 10px 0;
        }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 1rem;
    }

    .stats-card {
        padding: 1rem;
    }

    .stats-number {
        font-size: 1.8rem;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        display: block;
        width: 100%;
        margin: 0.3rem 0;
    }

    .search-input {
        padding: 10px 12px;
    }

    .no-results {
        padding: 2rem 1rem;
    }

        .no-results i {
            font-size: 3rem;
        }
}

/* تأثيرات hover محسنة */
.recording-row {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .recording-row::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, var(--brand-color), rgba(33, 198, 139, 0.1));
        transition: width 0.4s ease;
        z-index: 0;
    }

    .recording-row:hover::before {
        width: 100%;
    }

    .recording-row:hover td {
        position: relative;
        z-index: 1;
        color: var(--bodyColor);
    }

/* تحسينات إضافية للأزرار */
.btn-outline-secondary {
    border: 2px solid var(--brand-color);
    color: var(--brand-color);
    background: transparent;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

    .btn-outline-secondary:hover {
        background: var(--brand-color);
        border-color: var(--brand-color);
        color: var(--bodyColor);
        transform: scale(1.05);
    }

/* تأثيرات loading للفلاتر */
.filter-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

    .filter-section.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        border: 3px solid rgba(33, 198, 139, 0.3);
        border-top: 3px solid var(--brand-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* تحسين تأثيرات الأيقونات */
.bi {
    transition: var(--transition);
}

.sort-btn i {
    transition: var(--transition);
}

.sort-btn:hover i {
    transform: scale(1.2) rotate(180deg);
}

/* تأثير النبض للعناصر النشطة */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 198, 139, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(33, 198, 139, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 198, 139, 0);
    }
}

.filter-btn.active {
    animation: pulse 2s infinite;
}

/* تحسين مظهر الجدول responsive */
/*.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}*/

/* تأثيرات خاصة للعدادات */
.stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.3s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* تحسين تنسيق النصوص */
.recording-row td:first-child {
    font-weight: 600;
    color: var(--title-2-color);
}

/* تأثيرات focus للوصولية */
.search-input:focus,
.date-filter:focus,
.filter-btn:focus,
.sort-btn:focus {
    outline: 3px solid rgba(33, 198, 139, 0.3);
    outline-offset: 2px;
}

/* تحسين العرض في الطباعة */
@media print {
    .filter-section,
    .sort-btn,
    .bi-trash,
    .custom-alert {
        display: none !important;
    }

    .stats-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

   /* .table {
        box-shadow: none !important;
    }*/
}






/* ============== Question View Page Styles ============== */

/* تصميم صفحة عرض السؤال والخيارات */
.question-view-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
    direction: rtl;
    text-align: right;
}

/* بطاقة السؤال الرئيسية */
.question-view-card {
    background: var(--boxColor);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 2px solid rgba(33, 198, 139, 0.1);
}

/* رأس البطاقة */
.question-view-header {
    background: linear-gradient(135deg, var(--brand-color), #4a90e2);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .question-view-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: questionHeaderShimmer 3s ease-in-out infinite;
    }

@keyframes questionHeaderShimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.question-view-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.question-view-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    color: var(--primaryColor);
}

/* محتوى البطاقة */
.question-view-content {
    padding: 2.5rem;
}

/* قسم السؤال */
.question-display {
    background: var(--bodyColor);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-right: 4px solid var(--brand-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.question-header {
    margin-bottom: 1.5rem;
}

    .question-header h4 {
        color: var(--brand-color);
        font-size: 1.3rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.question-text-display {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--brand-color);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primaryColor);
    font-weight: 500;
    transition: var(--transition);
}

    .question-text-display:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(33, 198, 139, 0.1);
    }

/* صورة السؤال */
.question-image {
    margin: 1.5rem 0;
    text-align: center;
}

    .question-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: var(--transition);
    }

        .question-image img:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }

/* معلومات السؤال الإضافية */
.question-meta {
    background: var(--bodyColor);
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid var(--brand-color);
    margin-bottom: 2rem;
}

    .question-meta .row > div {
        margin-bottom: 1rem;
    }

    .question-meta strong {
        color: var(--secendaryColor);
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.3rem;
    }

    .question-meta div:not(strong) {
        color: var(--brand-color);
        font-weight: 600;
        font-size: 1rem;
    }

/* قسم الخيارات */
.options-display {
    margin-top: 2rem;
}

.options-display-header {
    margin-bottom: 1.5rem;
}

    .options-display-header h4 {
        color: var(--brand-color);
        font-size: 1.4rem;
        font-weight: 700;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

.options-list {
    display: grid;
    gap: 1rem;
}

/* تصميم الخيار */
.option-display-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e1e5e9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
}

    .option-display-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .option-display-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .option-display-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .option-display-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .option-display-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .option-display-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .option-display-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    /* الخيار الصحيح */
    .option-display-item.correct-option {
        border-color: var(--brand-color);
        background: linear-gradient(135deg, rgba(33, 198, 139, 0.1), rgba(33, 198, 139, 0.05));
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33, 198, 139, 0.2);
    }

        .option-display-item.correct-option:hover {
            box-shadow: 0 12px 30px rgba(33, 198, 139, 0.3);
        }

    /* الخيار العادي */
    .option-display-item.regular-option {
        border-color: #e1e5e9;
        background: white;
    }

        .option-display-item.regular-option:hover {
            border-color: var(--brand-color);
            background: rgba(33, 198, 139, 0.05);
        }

/* رمز الخيار */
.option-label {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.correct-option .option-label {
    background: var(--brand-color);
    box-shadow: 0 4px 15px rgba(33, 198, 139, 0.4);
}

.regular-option .option-label {
    background: var(--secendaryColor);
}

/* نص الخيار */
.option-text {
    flex: 1;
    font-size: 1.1rem;
    color: var(--primaryColor);
    line-height: 1.6;
    /*transition: var(--transition);*/
}

.correct-option .option-text {
    font-weight: 600;
    color: var(--primaryColor);
}

.regular-option .option-text {
    font-weight: 500;
}

/* علامة الصحة */
.correct-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(33, 198, 139, 0.4);
    animation: correctPulse 2s ease-in-out infinite;
}

@keyframes correctPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(33, 198, 139, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 5px 20px rgba(33, 198, 139, 0.6);
    }
}

/* حالة عدم وجود خيارات */
.no-options-display {
    text-align: center;
    padding: 3rem;
    color: var(--secendaryColor);
    background: var(--bodyColor);
    border-radius: 12px;
    border: 2px dashed var(--secendaryColor);
}

    .no-options-display i {
        font-size: 4rem;
        color: rgba(33, 198, 139, 0.3);
        margin-bottom: 1rem;
        animation: floatIcon 3s ease-in-out infinite;
    }

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.no-options-display h4 {
    color: var(--primaryColor);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.no-options-display p {
    font-size: 1rem;
    line-height: 1.6;
}

/* أزرار الإجراءات */
.question-view-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

   

        .question-view-actions .btn:hover {
            transform: translateY(-3px);
            text-decoration: none;
        }

    .question-view-actions .btn-primary {
        background: linear-gradient(135deg, var(--brand-color), #4a90e2);
        color: white;
        border: none;
    }

        .question-view-actions .btn-primary:hover {
            box-shadow: 0 8px 25px rgba(33, 198, 139, 0.4);
            color: white;
        }

    .question-view-actions .btn-warning {
        background: linear-gradient(135deg, var(--highlight-color), #f57c00);
        color: white;
        border: none;
    }

        .question-view-actions .btn-warning:hover {
            box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
            color: white;
        }

    .question-view-actions .btn-secondary {
        background: linear-gradient(135deg, var(--secendaryColor), #495057);
        color: white;
        border: none;
    }

        .question-view-actions .btn-secondary:hover {
            box-shadow: 0 8px 25px rgba(94, 94, 94, 0.4);
            color: white;
        }

/* تنبيه السؤال المحمي */
.protected-question-alert {
    background: var(--boxColor);
    border-right: 4px solid var(--forbidden-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

    .protected-question-alert i {
        font-size: 24px;
        color: var(--forbidden-color);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .protected-question-alert strong {
        color: var(--forbidden-color);
        font-size: 1.1rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .protected-question-alert p {
        color: var(--primaryColor);
        margin: 0;
        line-height: 1.6;
    }

/* انيميشن دخول العناصر */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-display {
    animation: slideInUp 0.6s ease-out;
}

/* تحسينات responsive */
@media (max-width: 768px) {
    .question-view-container {
        padding: 0 15px;
        margin: 1rem auto;
    }

    .question-view-content {
        padding: 1.5rem;
    }

    .question-display {
        padding: 1.5rem;
    }

    .question-view-header h1 {
        font-size: 1.8rem;
    }

    .question-text-display {
        font-size: 1rem;
        padding: 1rem;
    }

    .option-display-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .option-label {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .question-meta .row > div {
        margin-bottom: 1rem;
    }

    .question-view-actions {
        flex-direction: column;
    }

        .question-view-actions .btn {
            width: 100%;
            margin: 0.5rem 0;
            min-width: auto;
        }
}

@media (max-width: 480px) {
    .question-view-header {
        padding: 1.5rem;
    }

        .question-view-header h1 {
            font-size: 1.6rem;
        }

    .question-display {
        padding: 1rem;
    }

    .option-display-item {
        padding: 0.8rem;
    }

    .option-label {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .option-text {
        font-size: 1rem;
    }
}

/* تحسينات للوضع المظلم */
body.dark-mode .question-view-card {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .question-display {
    background: var(--bodyColor);
}

body.dark-mode .question-text-display {
    background: var(--boxColor);
    border-color: var(--brand-color);
}

body.dark-mode .option-display-item.regular-option {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .question-meta {
    background: var(--bodyColor);
}

body.dark-mode .no-options-display {
    background: var(--bodyColor);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .protected-question-alert {
    background: var(--bodyColor);
}


/* ============== Question Options Page Styles - نفس جمالية ViewQuestion ============== */

/* حاوي صفحة خيارات السؤال */
.question-options-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
    direction: rtl;
    text-align: right;
}

/* البطاقة الرئيسية */
.question-options-card {
    background: var(--boxColor);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 2px solid rgba(33, 198, 139, 0.1);
    backdrop-filter: blur(10px);
}

/* رأس البطاقة */
.question-options-header {
    background: linear-gradient(135deg, var(--brand-color), #4a90e2);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .question-options-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: optionsHeaderShimmer 3s ease-in-out infinite;
    }

@keyframes optionsHeaderShimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.question-options-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.question-options-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* محتوى البطاقة */
.question-options-content {
    padding: 2.5rem;
}

/* قسم عرض السؤال */
.question-display {
    background: var(--bodyColor);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-right: 4px solid var(--brand-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

    .question-display:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.question-header {
    margin-bottom: 1.5rem;
}

    .question-header h4 {
        color: var(--brand-color);
        font-size: 1.3rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
    }

.question-text-display {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--brand-color);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primaryColor);
    font-weight: 500;
    transition: var(--transition);
    margin-top: 1rem;
}

    .question-text-display:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(33, 198, 139, 0.1);
    }

/* معلومات السؤال */
.question-meta {
    background: var(--bodyColor);
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid var(--brand-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .question-meta .row > div {
        margin-bottom: 1rem;
    }

    .question-meta strong {
        color: var(--secendaryColor);
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.3rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .question-meta div:not(.row):not(strong) {
        color: var(--brand-color);
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

/* قسم إدارة الخيارات */
.options-management {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.options-management-header {
    background: linear-gradient(135deg, var(--brand-color), #1f9774);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .options-management-header::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: managementHeaderShimmer 4s ease-in-out infinite;
    }

@keyframes managementHeaderShimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.options-management-header h4 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.btn-add-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Tajawal", sans-serif;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .btn-add-option:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    }

/* حاوي جدول الخيارات */
.options-table-container {
    padding: 2rem;
}

/* قائمة الخيارات */
.options-list {
    display: grid;
    gap: 1.5rem;
}

/* عنصر الخيار */
.option-management-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e1e5e9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: slideInOptionItem 0.6s ease-out;
    animation-fill-mode: both;
}

    .option-management-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .option-management-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .option-management-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .option-management-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .option-management-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .option-management-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .option-management-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    /* الخيار الصحيح */
    .option-management-item.correct-option {
        border-color: var(--brand-color);
        background: linear-gradient(135deg, rgba(33, 198, 139, 0.1), rgba(33, 198, 139, 0.05));
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33, 198, 139, 0.2);
    }

        .option-management-item.correct-option:hover {
            box-shadow: 0 12px 35px rgba(33, 198, 139, 0.3);
        }

    /* الخيار العادي */
    .option-management-item.regular-option {
        border-color: #e1e5e9;
        background: white;
    }

        .option-management-item.regular-option:hover {
            border-color: var(--brand-color);
            background: rgba(33, 198, 139, 0.05);
        }

@keyframes slideInOptionItem {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* رمز الخيار */
.option-label {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.correct-option .option-label {
    background: linear-gradient(135deg, var(--brand-color), #1f9774);
    box-shadow: 0 4px 15px rgba(33, 198, 139, 0.4);
}

.regular-option .option-label {
    background: linear-gradient(135deg, var(--secendaryColor), #495057);
}

.option-management-item:hover .option-label {
    transform: scale(1.1);
}

/* محتوى الخيار */
.option-content {
    flex: 1;
    min-width: 0;
}

.option-text {
    font-size: 1.1rem;
    color: var(--primaryColor);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.correct-option .option-text {
    font-weight: 600;
    color: var(--title-2-color);
}

.option-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.correct-badge {
    background: linear-gradient(135deg, var(--brand-color), #1f9774);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(33, 198, 139, 0.3);
}

.regular-badge {
    background: linear-gradient(135deg, var(--secendaryColor), #495057);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* أزرار الإجراءات */
.option-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-action {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .btn-action::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .btn-action:hover::before {
        width: 100%;
        height: 100%;
    }

.btn-edit {
    background: linear-gradient(135deg, var(--brand-color), #1f9774);
    color: white;
}

    .btn-edit:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 20px rgba(33, 198, 139, 0.4);
    }

.btn-delete {
    background: linear-gradient(135deg, var(--forbidden-color), #c82333);
    color: white;
}

    .btn-delete:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    }

/* علامة الصحة */
.correct-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-color);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 198, 139, 0.4);
    animation: correctIndicatorPulse 2s ease-in-out infinite;
}

@keyframes correctIndicatorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(33, 198, 139, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(33, 198, 139, 0.6);
    }
}

/* حالة عدم وجود خيارات */
.no-options-display {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secendaryColor);
    background: var(--bodyColor);
    border-radius: 15px;
    border: 2px dashed var(--brand-color);
    margin: 2rem 0;
}

    .no-options-display i {
        font-size: 5rem;
        color: rgba(33, 198, 139, 0.3);
        margin-bottom: 1.5rem;
        animation: floatNoOptionsIcon 3s ease-in-out infinite;
    }

@keyframes floatNoOptionsIcon {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.no-options-display h4 {
    color: var(--primaryColor);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-options-display p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secendaryColor);
}

/* أزرار الإجراءات الرئيسية */
.question-options-actions {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

   

        .question-options-actions .btn::before {
            content: '';
            position: absolute;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: right 0.6s ease;
        }

        .question-options-actions .btn:hover::before {
            right: 100%;
        }

        .question-options-actions .btn:hover {
            transform: translateY(-3px);
            text-decoration: none;
        }

    .question-options-actions .btn-secondary {
        background: linear-gradient(135deg, var(--secendaryColor), #495057);
        color: white;
        box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    }

        .question-options-actions .btn-secondary:hover {
            box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
            color: white;
        }

/* تحسين النوافذ المنبثقة */
.modal-elegant {
    background-color: var(--boxColor);
    color: var(--primaryColor);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    direction: rtl;
    border: 2px solid rgba(33, 198, 139, 0.2);
}

.modal-header-elegant {
    /*background: linear-gradient(135deg, var(--brand-color), #4a90e2);*/
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

    .modal-header-elegant::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: modalHeaderShimmer 3s ease-in-out infinite;
    }

@keyframes modalHeaderShimmer {
    0%, 100% {
        transform: translateX(100%) translateY(100%) rotate(0deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(180deg);
    }
}

.modal-header-elegant .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header-elegant .btn-close {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.modal-elegant .modal-body2 {
    padding: 2rem;
    background: var(--boxColor);
    color: var(--primaryColor);
    text-align: right;
    direction: rtl;
}

.modal-elegant .modal-footer {
    background: var(--bodyColor);
    border-top: 1px solid rgba(33, 198, 139, 0.2);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-radius: 0 0 15px 15px;
}

    .modal-elegant .modal-footer .btn {
        padding: 12px 24px;
        border-radius: 25px;
        font-weight: 600;
        border: none;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 120px;
        justify-content: center;
    }

    .modal-elegant .modal-footer .btn-primary {
        background: linear-gradient(135deg, var(--brand-color), #4a90e2);
        color: white;
        box-shadow: 0 4px 15px rgba(33, 198, 139, 0.3);
    }

        .modal-elegant .modal-footer .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(33, 198, 139, 0.4);
            color: white;
        }

    .modal-elegant .modal-footer .btn-secondary {
        background: linear-gradient(135deg, var(--secendaryColor), #495057);
        color: white;
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    }

        .modal-elegant .modal-footer .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
            color: white;
        }

/* تحسين مجموعات النموذج */
.nexion-form-group {
    margin-bottom: 1.5rem;
    text-align: right;
    direction: rtl;
}

    .nexion-form-group .form-label {
        display: block;
        margin-bottom: 0.8rem;
        font-weight: 600;
        color: var(--primaryColor);
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .nexion-form-group .form-label i {
            color: var(--brand-color);
            font-size: 1.1rem;
        }

.nexion-form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--brand-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bodyColor);
    color: var(--primaryColor);
    transition: var(--transition);
    font-family: "Tajawal", sans-serif;
    direction: rtl;
    text-align: right;
}

    .nexion-form-control:focus {
        outline: none;
        border-color: var(--brand-color);
        box-shadow: 0 0 0 3px rgba(33, 198, 139, 0.1);
        background: var(--boxColor);
        transform: translateY(-1px);
    }

    .nexion-form-control::placeholder {
        color: var(--secendaryColor);
        font-style: italic;
    }

/* تحسينات responsive */
@media (max-width: 768px) {
    .question-options-container {
        padding: 0 15px;
        margin: 1rem auto;
    }

    .question-options-content {
        padding: 1.5rem;
    }

    .question-display {
        padding: 1.5rem;
    }

    .question-options-header h1 {
        font-size: 1.8rem;
    }

    .question-text-display {
        font-size: 1rem;
        padding: 1rem;
    }

    .option-management-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .option-label {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .option-actions {
        justify-content: center;
    }

    .btn-action {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .options-management-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .btn-add-option {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .question-options-actions {
        flex-direction: column;
    }

        .question-options-actions .btn {
            width: 100%;
            margin: 0.5rem 0;
            min-width: auto;
        }

    .question-meta .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .question-options-header {
        padding: 1.5rem;
    }

        .question-options-header h1 {
            font-size: 1.6rem;
            flex-direction: column;
            gap: 0.3rem;
        }

    .question-display {
        padding: 1rem;
    }

    .options-table-container {
        padding: 1rem;
    }

    .option-management-item {
        padding: 0.8rem;
    }

    .option-label {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .option-text {
        font-size: 1rem;
    }

    .correct-indicator {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        top: 10px;
        left: 10px;
    }

    .modal-elegant .modal-body2 {
        padding: 1.5rem;
    }

    .modal-elegant .modal-footer {
        flex-direction: column;
    }

        .modal-elegant .modal-footer .btn {
            width: 100%;
        }
}

/* تحسينات للوضع المظلم */
body.dark-mode .question-options-card {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .question-display {
    background: var(--bodyColor);
}

body.dark-mode .question-text-display {
    background: var(--boxColor);
    border-color: var(--brand-color);
}

body.dark-mode .option-management-item.regular-option {
    background: var(--boxColor);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .question-meta {
    background: var(--bodyColor);
}

body.dark-mode .no-options-display {
    background: var(--bodyColor);
    border-color: rgba(33, 198, 139, 0.5);
}

body.dark-mode .modal-elegant {
    background: var(--boxColor);
}

    body.dark-mode .modal-elegant .modal-body2 {
        background: var(--boxColor);
    }

    body.dark-mode .modal-elegant .modal-footer {
        background: var(--bodyColor);
    }

body.dark-mode .nexion-form-control {
    background: var(--bodyColor);
    color: var(--primaryColor);
}

    body.dark-mode .nexion-form-control:focus {
        background: var(--boxColor);
    }

/* تحسينات الوصولية */
.btn-action:focus,
.btn-add-option:focus,
.nexion-form-control:focus {
    outline: 3px solid rgba(33, 198, 139, 0.5);
    outline-offset: 2px;
}

/* تأثيرات إضافية للتفاعل */
.option-management-item:active {
    transform: scale(1.02);
    transition: transform 0.1s ease;
}

.btn-action:active {
    transform: translateY(-1px) scale(1.05);
    transition: transform 0.1s ease;
}

/* تحسين عرض الرسائل */
.swal2-popup {
    border-radius: var(--border-radius) !important;
    font-family: "Tajawal", sans-serif !important;
}

.swal2-title {
    color: var(--primaryColor) !important;
}

.swal2-content {
    color: var(--secendaryColor) !important;
}

/* ============== End Question Options Page Styles ============== */





