        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        html {
            direction: rtl;
            display: flex;
            margin: 0;
            padding: 0;
            height: 100%;
            width: 100%;
            font-family: 'Tajawal';
            font-size: 16px;
            justify-content: center;
            align-items: flex-start;
        } 

        body {
           /* background: linear-gradient(135deg, #667eea 0%, #dc3545 100%);*/
            height: 100vh;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }


        #app {
            display: flex;
            height: 100%;
            width: 100%;
            align-content: flex-start;
        }

        .logo-container {
            width: 65%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 25px;
            /* border: 5px solid #fff; */
        }

        .login-container {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 400px;
            padding: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .login-header h1 {
            color: #333;
            font-size: 28px;
            margin-bottom: 10px;
        }
        
        .login-header p {
            color: #666;
            font-size: 14px;
        }
        
        .input-group {
            margin-bottom: 20px;
            position: relative;
        }
        
        .input-group label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-size: 14px;
        }
        
        .input-group input {
            width: 100%;
            padding: 12px 15px 12px 40px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .input-group input:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }
        
        .input-group i {
            position: absolute;
            left: 15px;
            top: 38px;
            color: #888;
        }
        
        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 14px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
        }
        
        .remember-me input {
            margin-left: 5px;
        }
        
        .forgot-password a {
            color: #667eea;
            text-decoration: none;
        }
        
.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #667eea, #dc3545);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
        
        .login-button:hover {
            background: linear-gradient(to right, #5a6fd1, #6a4299);
            transform: translateY(-2px);
        }
        
        .signup-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
        }
        
        .signup-link a {
            color: #667eea;
            text-decoration: none;
            font-weight: bold;
        }
        
        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }
        
        .alert-danger {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .alert-warning {
            background-color: #fff3cd;
            color: #856404;
            border: 1px solid #ffeeba;
        }
        
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 15px;
            display: none;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @media (max-width: 480px) {
            .login-container {
                padding: 20px;
            }
            
            .login-header h1 {
                font-size: 24px;
            }
        }

.logo-name {
    font-family: 'Tajawal';
    font-weight: bold;
    color: #8b4db5;
}




input
{
font-family: Tajawal;
}

    .box {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
 
    #logbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
    
.inrysi {
    height: 45px;
    width: 315px;
    padding: 1vw;
    margin: .5vw;
    border: 2px solid #4db4df;
    border-radius: 5px;
    text-align: center;
    background-color: #90f6ff0f;
}
  
    
.azrar {
    height: 50px;
    width: 140px;
    padding: 5px;
    border: 3px solid #b3bac3;
    border-radius: 8px;
    background: #173352;
    color: #fff;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    margin: 10px;
    justify-content: center;
    box-shadow: 0px 20px 15px -8px #736452, 0px -20px 15px -8px #d5d5d5;
}
 
    .azrar:hover {
    background-color: #A4A2A6;
    border: 3px solid #52bcc9;
    transition: 1s;
}
    
    
.item1 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
    #shar {
    border-radius: 250px;
    height: 70%;
}
    
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35%;
}
  
    .tion1 {
    position: fixed;
    top: 0;
    right: 0;
    width: max-content;
    height: 1.25vw;
    background-color: #ff1c00;
    padding: .5vw;
    padding-left: 1vw;
    font-size: 1.25vw;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: ticker 5s cubic-bezier(1, 0, 0.5, 0) infinite;
}

.tion {
    position: fixed;
    top: 0;
    right: 0;
    width: max-content;
    height: 1.25vw;
    background-color: #76b788;
    padding: .5vw;
    padding-left: 1vw;
    font-size: 1.25vw;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: ticker 5s cubic-bezier(1, 0, 0.5, 0) infinite;
}
    
    @media only screen and (max-width: 767px) {
      
.tion1 {
    position: fixed;
    top: 0;
    right: 0;
    width: max-content;
    height: 35px;
    background-color: #ff1c00;
    padding: .5vw;
    padding-left: 1vw;
    font-size: 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: ticker 5s cubic-bezier(1, 0, 0.5, 0) infinite;
}


.tion {
    position: fixed;
    top: 0;
    right: 0;
    width: max-content;
    height: 35px;
    background-color: #76b788;
    padding: .5vw;
    padding-left: 1vw;
    font-size: 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: ticker 5s cubic-bezier(1, 0, 0.5, 0) infinite;
}
      
}
 
#loadinginside {
    width: 100%;
    height: 100%;
    background-color: #ffffff00;
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#spenr {
    position: absolute;
    top: 52px;
    width: 100%;
    height: -moz-calc(100% - 102px);
    height: -webkit-calc(100% - 102px);
    height: -o-calc(100% - 102px);
    height: calc(100% - 102px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5fdfd;
}


#spenr1 {
    width: 100%;
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: opa 3s infinite;
}

@keyframes opa {
0%   {opacity: 0;}
50%  {opacity: .5;}
75%  {opacity: .75;}
100% {opacity: 1;}    
}
    
@keyframes ticker {
0% {
    margin-top: 0;
}
25% {
    margin-top: 30px;
}
50% {
    margin-top: -5px;
    right: 10vw;
}
75% {
    margin-top: -50px;
}
100% {
    margin-top: 0;
}
}

.div_Table {
    overflow-y: auto;
    height: 100%;
}

.table>thead {
    vertical-align: bottom;
    position: sticky;
    top: 0;
}



/* قواعد CSS العامة للعناصر الموجودة في HTML */

/* #mainpage - العنصر الرئيسي (لم يتم تحديد قواعد CSS مباشرة له في الكود المقدم، ولكن قد يكون له تأثيرات غير مباشرة من قواعد الأبناء) */

/* #datausers */
#datausers {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 100%;
    background-color: #A79A91;
    color: #fff;
}
/* Media Query for #datausers on small screens */
@media only screen and (max-width: 767px) {
    #datausers {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 45px;
        width: 100%;
        background: #a79a91;
        color: #fff;
        border-radius: 50px 50px 0 0;
        font-size: 10px;
    }
}

/* .du (تطبق على جميع عناصر div داخل #datausers ذات الكلاس du) */
/* لا توجد قاعدة .du محددة بشكل مباشر في CSS المقدم، ولكنها قد ترث خصائص من #datausers أو لها خصائص مضمنة (مثل hidden) */

/* #we */
#we {
    padding: 0 25px 0 9px;
    color: #fffebc;
    font-weight: bold;
}

/* #home (وغيرها من الأيقونات ذات الكلاسات المشتركة) */
/* .material-symbols-outlined */
@media only screen and (max-width: 767px) {
    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
    }
}

/* .bo1, .mianicon */
.mianicon {
    font-size: 40px;
    background-color: unset;
    border-radius: 90px;
    cursor: pointer;
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: unset;
}
/* Media Query for .mianicon on small screens */
@media only screen and (max-width: 767px) {
    .mianicon {
        font-size: 30px;
        background-color: unset;
        border-radius: 90px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: unset;
        width: max-content;
        height: max-content;
        margin-bottom: 2px;
    }
}

/* .hom */
.hom:hover {
    color: #99fff7;
}

/* #app2 */
#app2 {
    position: absolute;
    top: 45px;
    background-color: #f5f5f5;
    width: 100%;
    padding-top: 10px;
    height: -moz-calc(100% - 90px);
    height: -webkit-calc(100% - 90px);
    height: -o-calc(100% - 90px);
    height: calc(100% - 100px);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: unset;
    flex-direction: column;
    box-shadow: inset 0 -5px 0 2px #a79a91, inset 0 5px 0 2px #99fff7;
}
/* Media Query for #app2 on small screens */
@media only screen and (max-width: 767px) {
    #app2 {
        position: absolute;
        top: 45px;
        background-color: #ffffff;
        width: 100%;
        height: -moz-calc(100% - 120px);
        height: -webkit-calc(100% - 120px);
        height: -o-calc(100% - 155px);
        height: calc(100% - 120px);
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding-bottom: unset;
        flex-direction: column;
        box-shadow: inset 0 2px 0 0px #a79a91, inset 0 5px 0 0px #99fff7;
    }
}

/* .a (تطبق على #aminp) */
.a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column-reverse;
}

/* .a2 */
.a2 {
    width: 100%;
    height: 93%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: flex-start;
}
/* Media Query for .a2 on small screens */
@media only screen and (max-width: 767px) {
    .a2 {
        width: 100%;
        height: 93%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        flex-wrap: unset;
    }
}

/* .a3 */
.a3 {
    width: 40%;
    height: 40%;
    margin: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
/* Media Query for .a3 on small screens */
@media only screen and (max-width: 767px) {
    .a3 {
        width: 100%;
        height: 40%;
        margin: 1%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}

/* .item0 */
/* لا توجد قاعدة .item0 محددة بشكل مباشر في CSS المقدم */

/* .a5 */
.a5 {
    width: 50%;
    padding: 1% 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #10777D;
    margin: 0 2%;
    border-radius: 6px;
    color: #ffffff;
    border: 1px solid #9E9E9E;
}

/* .a6 */
.a6 {
    width: 15%;
    padding: 1% 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: palevioletred;
    margin: 0 2%;
    border-radius: 6px;
    color: #ffffff;
    border: 1px solid #cfcfcf;
}

/* .item11 */
.item11 {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .footer */
.footer {
    width: 100%;
    height: 45px;
    background-color: #4d5c6f;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    position: fixed;
    bottom: 0;
}
/* Media Query for .footer on small screens */
@media only screen and (max-width: 767px) {
    .footer {
        height: 45px;
        display: flex;
        flex-direction: row;
        align-items: center;
        border-top: 4px solid #ffffff00;
        padding: 5px 0;
        position: fixed;
        bottom: 0%;
        width: 100%;
        justify-content: space-around;
        touch-action: auto;
        animation: mymove 5s infinite;
        background-color: white;
        border-radius: 20px 20px 0 0;
    }
}

/* .a4 */
.a4 {
    width: 20%;
    height: 75%;
    background-color: #4D5C6E;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .5%;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 1vw;
    border-radius: 20px 5px 5px 5px;
    /* box-shadow: inset 0 0 0 3px #afffff42; */
    color: #fff;
    transition: .95s;
    border: 1px solid #4D5C6F;
}
.a4:hover {
    background-color: #38c5c5;
    color: #fff;
    margin-right: 1.5vw;
    box-shadow: inset 0 0 40px -9px #3a716e;
    border: 1px solid #fff;
    border-bottom: 0;
    border-right: 0;
}
/* Media Query for .a4 on small screens */
@media only screen and (max-width: 767px) {
    .a4 {
        width: 80px;
        height: 90%;
        background-color: #ffffff0f;
        display: flex;
        justify-content: center;
        margin: 7px;
        border-radius: 8px 8px 8px 8px;
        color: #0d353b;
        transition: .95s;
        flex-direction: column-reverse;
        box-shadow: unset;
        align-items: center;
        border: unset;
        font-weight: bold;
    }
}

/* .addfnew */
.addfnew {
    font-size: 1vw;
    width: 45%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}
/* Media Query for .addfnew on small screens */
@media only screen and (max-width: 767px) {
    .addfnew {
        font-size: 10px;
        width: 100%;
        height: 35%;
        display: flex;
        justify-content: center;
        cursor: pointer;
        font-weight: bold;
        align-items: center;
        text-align: center;
    }
}


/* أكواد الصفحة الرئيسية */

#mainpage {
    width: 100%;
    direction: rtl;
    overflow: hidden;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0,  'wght' 100,  'GRAD' 0,  'opsz' 24;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
   /* -webkit-font-feature-settings: 'liga'; */
    -webkit-font-smoothing: antialiased;
}

:root {
            --primary-color: #0078d4;
            --hover-color: #e5f2ff;
        }
        
       
        /* الشريط الجانبي */
        .sidebar {
            background: white;
            height: 100vh;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;
        }
        
        .sidebar-header {
            background: var(--primary-color);
            color: white;
            padding: 1rem;
        }
        
        .sidebar-menu .nav-link {
            color: #333;
            border-radius: 5px;
            margin: 2px 0;
        }
        
        .sidebar-menu .nav-link:hover, 
        .sidebar-menu .nav-link.active {
            background: var(--hover-color);
            color: var(--primary-color);
        }
        
        .sidebar-menu .nav-link i {
            margin-left: 8px;
        }
        
        /* المحتوى الرئيسي */
        .div_Table {
            height: calc(100vh - 120px);
            overflow-y: auto;
            padding: 15px;
            background: white;
        }
        
        /* تجاوب الجوال */
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                right: -250px;
                top: 0;
                width: 250px;
                z-index: 1000;
            }
            .user-avatar {
                font-size: 12px;
            }

            .hi {
                display: none !important;
            }
            
            #sidebar-toggle:checked ~ .sidebar {
                right: 0;
            }
            
            .sidebar-toggle-label {
                display: block;
                position: fixed;
                right: 10px;
                top: 10px;
                z-index: 1100;
                background: var(--primary-color);
                color: white;
                padding: 10px;
                border-radius: 5px;
                cursor: pointer;
            }
            
            .mobile-nav {
                display: flex;
            }
            
            .add-btn-mobile {
                display: block !important;
            }

            .wri {
                display: none;
            }

            .cxx {
                margin-left: 5px !important;
            }

            #Table_Row {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                width: 100%;
                border: 1px solid #2dcc9d;
                border-bottom-width: 10px;
                margin: 0px 0px 20px 0px;
                border-radius: 7px;
                justify-content: center;
            }

            thead.th1 {
                display: none;
            }

            #table-conatainer td {
                border: unset;    
            }

            #Table_Row[data-h="g"] {
                border-color: #dc3545 !important;
}

        }

        .htitle {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f1f1f1;
            padding: 5px;
            border-radius: 7px;
            font-size: 20px;
            width: 100%;
        }

            .setol {
                width: 140px;
            }
        
        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --accent: #4895ef;
            --dark: #2b2d42;
            --light: #f8f9fa;
        }
        
        div#evants {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: auto;
        }
       
        /* الشريط العلوي */
        .top-bar {
            background-color: white;
            padding: 15px 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }
        
        .user-menu {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        /*
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        */

        .title_data {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hi {
            display: flex;
            font-size: 25px;
            margin: 0px 15px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin-bottom: .5rem;
            padding: 0 5px;
        }

        .hi:hover {
            margin-bottom: 0;
        }


        .fa-file-pdf {
            color: #ff3535;
            pointer-events: none;
        }

        .fa-file-excel {
            color: #2ecc71;
            pointer-events: none;
        }

        .user-avatar {
            width: max-content;
            height: 40px;
            padding: 0 15px;
            border-radius: 8px;
            background-color: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* المحتوى الرئيسي */
        .main-content {
            flex: 1;
            padding: 20px;
            margin-top: 70px; /* لتعويض التوب بار الثابت */
            margin-bottom: 70px; /* لتعويض البوتوم بار على الجوال */
            height: calc(100% - 70px);
            overflow: auto;
            margin-right: 80px; /* لتعويض الشريط الجانبي */
        }

        /* شريط التنقل السفلي (للجوال) */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            padding: 10px 0;
            display: none;
            justify-content: space-around;
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
            padding: 5px 10px;
        }
        
        .nav-item i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        /* الشريط الجانبي (للكمبيوتر) */
        .sidebar {
            position: fixed;
            top: 70px; /* أسفل التوب بار */
            right: 0;
            bottom: 0;
            width: 80px;
            background: white;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 20px;
            z-index: 999;
        }
        
        .sidebar-item {
            padding: 20px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            width: 100%;
            transition: all 0.3s;
        }
        
        .sidebar-item i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        
        .sidebar-item.active {
            color: var(--primary);
            background-color: #f0f7ff;
        }
        
        .sidebar-item:hover {
            background-color: #f8f9fa;
        }
        
        /* بطاقات الإحصائيات */
        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            border-top: 4px solid var(--primary);
        }
        
        .stat-card:nth-child(2) { border-color: #3a0ca3; }
        .stat-card:nth-child(3) { border-color: #7209b7; }
        .stat-card:nth-child(4) { border-color: #f72585; }
        
        .stat-card h3 {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        
        .stat-card .value {
            height: 60%;
            font-size: 24px;
            font-weight: bold;
            color: var(--dark);
        }
        
        /* قسم الفعاليات */
        .section {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .div_btwen {
            display: flex;
        }

        .btn {
            padding: 8px 16px;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
            margin: 0 5px;
        }
        
        .btn:hover {
            background-color: var(--secondary);
        }
        
        .btn i {
            font-size: 12px;
        }
        
        /* جدول الفعاليات */
        .events-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .events-table th {
            text-align: right;
            padding: 12px 15px;
            background-color: #f8f9fa;
            color: #555;
            font-weight: 600;
        }
        
        .events-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
        }
        
        .event-status {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }

        @keyframes moveProgress {
            0% {
                opacity: 1;
                box-shadow: inset 300px 0px 0 #d7d7d7;
               }
          100% {
                opacity: 0;
               }
        }

        @keyframes moveProgress1 {
            0% {
                opacity: 1;
                box-shadow: inset 950px 0px 0 #d7d7d7;
               }
          100% {
                opacity: 0;
               }
        }

        .lodpar {
            animation: moveProgress 1.75s linear infinite;           
        }

        .lodpar1 {
            animation: moveProgress1 1.25s linear infinite;
            height: 50px;
        }        
        /*
        .status-active {
            background-color: #e3faf0;
            color: #20c997;
        }

        .status-pending {
            background-color: #fff3bf;
            color: #f08c00;
        }

        .status-completed {
            background-color: #f1f3f5;
            color: #868e96;
        }  

        */
       .event-status[data-soon*="نشطة"] { 
            background-color: #e3faf0;
            color: #20c997; 
        }

       .event-status[data-soon*="قريباً"] { 
            background-color: #fff3bf; 
            color: #f08c00; 
        }

       .event-status[data-soon*="مجدولة"] { 
            background-color: #ffdee1;
            color: #dc3545;
        }

       .event-status[data-soon*="منتهية"] { 
            background-color: #f1f3f5;
            color: #868e96; 
        }

        .event-edtals[data-soon*="منتهية"] {
            display: none;
        }
      
        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--primary);
            font-size: 14px;
            margin: 0 5px;
            transition: all 0.3s;
        }
        
        .action-btn:hover {
            color: var(--secondary);
        }
        
        /* QR Code Scanner */
        .qr-scanner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .qr-placeholder {
            width: 200px;
            height: 200px;
            background-color: #f8f9fa;
            border: 2px dashed #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
        }
        
        /* Responsive Design عرض الجوال الشاشة  */
        @media (max-width: 768px) {
            .sidebar {
                display: none;
            }
            
            .bottom-nav {
                display: flex;
            }
            
            .main-content {
                margin-right: 0;
                padding: 0px;
                height: calc(100% - 130px);

            }
        }
        
        @media (min-width: 769px) {
            .bottom-nav {
                display: none;
            }
        }
        
       
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .header h1 {
            color: #2c3e50;
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .search-container {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        #search {
            width: 70%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 25px;
            font-size: 16px;
            outline: none;
        }
        
        .events-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            justify-items: center;
        }
        
        .event-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }
        
        .event-card:hover {
            transform: translateY(-5px);
        }
        
        .event-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .event-details {
            padding: 15px;
        }
        


        .event-title {
            font-size: 1.3rem;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .event-date, .event-location {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            color: #7f8c8d;
        }
        
        .event-date i, .event-location i {
            margin-left: 8px;
            color: #3498db;
        }
        
        .event-seats {
            background-color: #f8f9fa;
            padding: 8px;
            border-radius: 5px;
            margin: 10px 0;
            text-align: center;
            font-weight: bold;
            color: #27ae60;
        }
        
        .register-btn {
            display: block;
            width: 100%;
            padding: 10px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }
        
        .register-btn:hover {
            background-color: #2980b9;
        }

        .registar-btn {
            background-color: #e74c3c;
            color: white;
            border: none;
            padding: 8px 16px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
            margin: 10px 0 0 0;
            border-radius: 4px;
            width: 100%;
        }
        
        .registar-btn:hover {
            color: #6f2424;
            background-color: #e74c3c54;
        }

       
        .filter-buttons {
            display: flex;
            justify-content: center;
            gap: 10px; /* مسافة بين الأزرار */
            margin-bottom: 20px;
            /* لجعل الأزرار تتكدس في أسطر جديدة إذا ضاقت المساحة */
            flex-wrap: wrap; /* هذا هو المفتاح للتجاوبية على شاشات أكبر قليلاً */
            padding: 0 10px; /* إضافة حشوة جانبية لتجنب التصاق الأزرار بحواف الشاشة */
        }

        .filter-btn {
            padding: 8px 15px;
            background-color: #ecf0f1;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .filter-btn.active {
            background-color: #3498db;
            color: white;
        }
        
        @media (max-width: 768px) {  /*-- عرض الجوال للصفحة الرئيسية -- */

        .event-edtals[data-soon*="نشطة"] { 
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            width: 100%;
            border: 1px solid #2dcc9d;
            border-bottom-width: 10px;
            margin: 0px 0px  20px 0px;
            border-radius: 7px;
            justify-content: center;
    }

       .event-edtals[data-soon*="قريباً"] { 
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            width: 100%;
            border: 1px solid #f08c00;
            border-bottom-width: 10px;
            margin: 0px 0px  20px 0px;
            border-radius: 7px;
            justify-content: center;            
        }

       .event-edtals[data-soon*="مجدولة"] { 
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            width: 100%;
            border: 1px solid #dc3545;
            border-bottom-width: 10px;
            margin: 0px 0px  20px 0px;
            border-radius: 7px;
            justify-content: center;              
        }

       .event-edtals[data-soon*="منتهية"] { 
            align-items: center;
            flex-wrap: wrap;
            width: 100%;
            border: 1px solid #868e96;
            border-bottom-width: 10px;
            margin: 0px 0px  20px 0px;
            border-radius: 7px;
            justify-content: center;                
        }

        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            display: flex;
            border-top: 4px solid var(--primary);
            width: 45%;
            margin: 5px;
            flex-direction: column;
        }
  
        .stats-cards {
            display: flex;
            margin-bottom: 10px;
            flex-wrap: wrap;
            justify-content: center;
            gap: unset;
        }

        }   

        @media (max-width: 768px) {
            .events-container {
                grid-template-columns: 1fr;
            }
            
            #search {
                width: 90%;
            }

            thead.hedmople {
                display: none;
        }

            .custom-file-upload[for="logoFile"] {
                width: 50%;
        }

        }
        
        .event-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            width: 300px;
            margin: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            cursor: pointer;
        }
        
        .event-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .event-details {
            padding: 15px;
        }
        
        .event-title {
            margin: 0 0 10px 0;
            color: #333;
        }
        
        .event-date, .event-location, .event-seats {
            margin: 5px 0;
            color: #666;
            display: flex;
            align-items: center;
        }
        
        .event-date i, .event-location i {
            margin-left: 5px;
        }
        
        .register-btn {
            background-color: #4CAF50;
            color: white;
            border: none;
            padding: 8px 16px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
            margin: 10px 0 0 0;
            cursor: pointer;
            border-radius: 4px;
            width: 100%;
        }
        
        /* نمط الـ Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        
        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 90%;
            max-width: 800px;
            border-radius: 8px;
            position: relative;
        }
        
        .close {
            color: #aaa;
            position: absolute;
            left: 15px;
            top: 10px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover {
            color: black;
        }
        
        .modal-body {
            margin-top: 20px;
        }
        
        .map-container {
            width: 100%;
            height: 400px;
            margin: 15px 0;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .map-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
          /* أنماط بطاقة QR Code المحسنة */
  .ticket-card {
    width: 350px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    position: relative;
  }
  
  .ticket-header {
    background: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
  }
  
  .ticket-title {
    font-size: 22px;
    margin: 0;
    font-weight: bold;
  }
  
  .ticket-subtitle {
    font-size: 16px;
    margin: 5px 0 0;
    opacity: 0.9;
  }
  
  .ticket-body {
    padding: 20px;
    text-align: center;
  }
  
  .qr-container {
    margin: 0 auto 15px;
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: inline-block;
  }
  
  .ticket-info {
    margin: 15px 0;
    text-align: right;
  }
  
  .info-row {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
  }
  
  .info-label {
    font-weight: bold;
    color: #555;
  }
  
  .info-value {
    color: #333;
  }
  
  .ticket-footer {
    background: #f5f5f5;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: #777;
  }
  
  .download-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background 0.3s;
  }
  
  .download-btn:hover {
    background: #0b7dda;
  }

  .timex {
    font-size: 14px;
}

/* تصميم البطاقة الأساسي */
.qr-code-container {
  position: fixed;  
  width: 90%;
  max-width: max-content; /* حد أقصى للعرض على الويب */
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* تعديلات الجوال */
@media (max-width: 768px) {
  .qr-code-container {
    width: 95%;
    margin: 10px auto;
    padding: 15px;
  }
  #qrcode {
    width: 150px !important;
    height: 150px !important;
  }
}

#qrcode {
    margin: 15px auto;
    padding: 10px;
    background: white;
    border-radius: 4px;
    display: inline-block;
}

.qr-info {
    margin: 15px 0;
    text-align: right;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.qr-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.qr-info-item i {
    margin-left: 8px;
    color: #4CAF50;
    width: 20px;
    text-align: center;
}

.tnbhat {
    font-size: 9px;
    margin: 5px 0 -5px 0;
    padding: 10px 0 0 0;
    display: flex;
    justify-content: center;
    width: 100%;
    color: #000;
}

.download-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    margin-top: 10px;
}

.closecard {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    margin-top: 10px;
}

#qrcode {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

#qrcode canvas, #qrcode img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}

.event-edtals:hover {
    background-color: #edffff;
    transition: .5s;
}

    .filters {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .filter-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .filter-group label {
        font-weight: bold;
    }
    

    .filter-group select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
}
    
        /* عنوان الصفحة */
        .h1_lebel {
            background-color: #34495e; /* لون أزرق داكن/رمادي مثل الشريط العلوي في الصورة */
            color: white;
            padding: 20px;
            text-align: center;
            margin: 0;
            font-size: 24px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        /* منطقة المحتوى داخل النموذج */
        .form-content {
            padding: 30px;
            display: grid;
            grid-template-columns: 1fr 1fr; /* عمودين متساويين */
            gap: 25px 40px; /* مسافة بين الصفوف والأعمدة */
        }

        /* تجميع الحقول مع التسميات */
        .form-group {
            display: flex;
            align-items: center; /* لمحاذاة التسمية مع حقل الإدخال */
        }

        .form-group label {
            background-color: #4361ee; /* لون أزرق فاتح مثل التسميات في الصورة */
            color: white;
            padding: 10px 15px;
            border-radius: 4px;
            font-size: 14px;
            flex-shrink: 0; /* لمنع التسمية من الانكماش */
            min-width: 135px; /* عرض أدنى للتسمية */
            text-align: center; /* لتوسيط النص داخل التسمية */
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            flex-grow: 1; /* لتوسيع حقل الإدخال ليملأ المساحة المتبقية */
            padding: 10px 15px;
            border: 1px solid #ced4da; /* لون حدود فاتح */
            border-radius: 4px;
            margin-right: 10px; /* مسافة بين التسمية وحقل الإدخال */
            box-sizing: border-box; /* لضمان أن البادينج لا يزيد العرض الكلي */
            font-size: 15px;
            color: #495057;
        }

        .input-group select {
            width: 100%;
            padding: 12px 15px 12px 40px;
            border: 1px solid #ddd;
            font-size: 16px;
        }


        .form-group textarea {
            resize: vertical; /* السماح بتغيير حجم المنطقة النصية عموديًا */
            min-height: 120px; /* ارتفاع أدنى للمنطقة النصية */
        }

        /* تنسيقات خاصة لحقول التاريخ والوقت */
        .form-group input[type="datetime-local"] {
            position: relative;
        }

        /* تنسيق الأزرار المشابهة للتسميات */
        .button-label {
            background-color: #5bc0de; /* نفس لون التسميات */
            color: white;
            padding: 10px 15px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            text-align: center;
            display: block; /* لضمان أخذ العرض الكامل في مكانه */
            margin-bottom: 5px; /* مسافة تحت الزر إذا كان هناك شيء أسفله */
        }

        /* تنسيق خاص للمجموعات التي تحتاج لعمود كامل */
        .full-width-section {
            grid-column: 1 / -1; /* يمتد عبر كل الأعمدة */
            display: flex;
            gap: 40px; /* مسافة بين العمودين داخل هذا القسم */
            flex-wrap: wrap; /* للسماح للعناصر بالانتقال لصف جديد في الشاشات الصغيرة */
        }

        .half-width-column {
            flex: 1; /* لجعل كل عمود يأخذ نصف المساحة المتاحة */
            min-width: 300px; /* عرض أدنى لمنع الانكماش الزائد */
            display: flex;
            flex-direction: column;
        }

        .half-width-column .form-group {
            flex-direction: column; /* جعل التسمية فوق الحقل */
            align-items: flex-end; /* محاذاة التسمية لليمين */
            margin-bottom: 20px; /* مسافة بين المجموعات */
        }

        .half-width-column .form-group label {
            width: 100%; /* جعل التسمية تأخذ العرض الكامل */
            margin-bottom: 10px; /* مسافة بين التسمية والحقل */
            margin-right: 0;
        }
        .half-width-column .form-group input,
        .half-width-column .form-group select,
        .half-width-column .form-group textarea {
            width: 100%;
            margin-right: 0;
        }

        /* تنسيق خاص لخريطة جوجل */
        #googleMap {
            width: 100%;
            height: 250px; /* ارتفاع ثابت للخريطة */
            border: 1px solid #ced4da;
            border-radius: 4px;
            margin-top: 10px; /* مسافة من التسمية */
        }

        /* تنسيق قسم رفع الصورة واستعراضها - سيتم استخدامها للهوية البصرية الآن */
        .image-upload-preview {
            border: 1px solid #ced4da;
            border-radius: 4px;
            padding: 15px;
            text-align: center;
            background-color: #f8f9fa;
            height: 250px; /* نفس ارتفاع الخريطة */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            overflow: hidden; /* لمنع الصورة من الخروج */
            margin-top: 10px;
        }

        .image-upload-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; /* للحفاظ على نسبة العرض إلى الارتفاع */
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .image-upload-preview .placeholder-text {
            color: #6c757d;
            font-size: 14px;
        }

        /* تنسيق حقل ID الشعار "اختيار ملف" */
        .file-input-group {
            display: flex;
            align-items: center;
            flex-grow: 1; /* للسماح لها بالتوسع */
            margin-right: 10px; /* مسافة بين التسمية وحقل الإدخال */
        }
        .file-input-group input[type="file"] {
            display: none; /* إخفاء زر اختيار الملف الأصلي */
        }
        .file-input-group .custom-file-upload {
            background-color: #f8f9fa; /* لون خلفية زر الملف */
            color: #495057;
            border: 1px solid #ced4da;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            flex-grow: 1;
            text-align: right; /* محاذاة النص لليمين */
            line-height: 1; /* لمحاذاة النص عموديا */
        }
        .file-input-group .custom-file-upload:hover {
            background-color: #e2e6ea;
        }
        .file-input-group span {
            margin-right: 10px; /* مسافة بين الزر واسم الملف */
            color: #6c757d; /* لون نص اسم الملف */
        }

        /* زر "نشر الفعالية" */
        .submit-button-container {
            text-align: center;
            padding: 30px;
            background-color: #f8f9fa; /* لون خلفية خفيف أسفل النموذج */
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            margin-top: -15px; /* لتقليل المسافة السلبية مع الـ form-content */
        }
        .submit-button {
            background-color: #28a745; /* لون أخضر للزر */
            color: white;
            padding: 15px 40px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease;
        }
        .submit-button:hover {
            background-color: #218838;
        }

        /* استجابة التصميم لأجهزة الشاشات الصغيرة */
        @media (max-width: 768px) {
            .form-content {
                grid-template-columns: 1fr; /* عمود واحد في الشاشات الصغيرة */
                gap: 20px;
            }
            .form-group {
                flex-direction: column; /* لجعل التسمية فوق الحقل */
                align-items: flex-end; /* لمحاذاة التسمية لليمين */
            }
            .form-group label {
                width: 100%; /* لجعل التسمية تأخذ العرض الكامل */
                margin-right: 0;
                margin-bottom: 8px; /* مسافة بين التسمية والحقل */
            }
            .form-group input,
            .form-group select,
            .form-group textarea {
                width: 100%;
                margin-right: 0;
            }
            .full-width-section {
                flex-direction: column; /* الأقسام الفرعية عمودية في الشاشات الصغيرة */
                gap: 20px;
            }
            .half-width-column {
                min-width: unset; /* إلغاء الحد الأدنى للعرض */
                width: 100%;
            }
        }

        /*  السويش كلك */

            .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 30px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: #ccc;
      transition: 0.4s;
      border-radius: 30px;
    }

    .slider:before {
      position: absolute;
      content: "❌";
      height: 24px;
      width: 24px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
      text-align: center;
      line-height: 24px;
      font-size: 16px;
    }

    .switch input:checked + .slider {
      background-color: #4CAF50;
    }

    .switch input:checked + .slider:before {
      transform: translateX(30px);
      content: "✅";
    }

    h1.title_f {
    font-size: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9e9e9;
    padding: 7px 45px;
    border-radius: 10px;
    width: max-content;
    margin: auto;
    margin-bottom: 15px;
}

.totl {
    width: max-content;
    padding: 1px 10px;
    background-color: #16c60c;
    color: #fff;
    border-radius: 7px;
    margin-left: 20px;    
}

#present-percentage {
    width: max-content;
    padding: 1px 10px;
    background-color: #16c60c;
    color: #fff;
    border-radius: 7px;
}

.cou2 {
    width: max-content;
    padding: 1px 10px;
    background-color: #16c60c;
    color: #fff;
    border-radius: 7px;
    margin-left: 20px;
}

    .floating-save-btn {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background-color: #198754;
      color: white;
      border: none;
      padding: 12px 22px;
      border-radius: 50px;
      font-size: 16px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      cursor: pointer;
      z-index: 9999;
      transition: background-color 0.3s ease;
    }

    .floating-save-btn.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    }

.floating-save-btn .btn-text {
  pointer-events: none; /* يجعل النقر يمر إلى العنصر الأب */
}
    
    .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    }

    @keyframes spin {
    to {
        transform: rotate(360deg);
    }
    }

    th#triSwitch {
    width: 10px;
    text-align: center;
    font-size: 20px;
    padding: 0px;
    cursor: pointer;
}

.manual-change {
    background-color: #00b6ff2e;
    color: #00b6ff;
    transition: background-color 0.3s, color 0.3s;
    padding: 0px 8px;
    border-radius: 3px;
}
.manual-change1 {
    background-color: #4caf502e;
    color: #4caf50;
    transition: background-color 0.3s, color 0.3s;
    padding: 0px 8px;
    border-radius: 3px;
}

#searchname {
    padding: 4px 8px;
    border-radius: 7px;
    border: 1px solid #ddd;
    background-color: white;
}

.etmad {
    background-color: #0dcaf01c;
    padding: 5px 10px;
    border-radius: 7px;
    color: #0dcaf0;
    cursor: pointer;
}

.etmad:hover {
    background-color: #775334;
    color: #fff;
    cursor: pointer;
    transition: 1.25s;
}

    .permissions-group {
      margin-top: 15px;
      border: 1px solid #ddd;
      padding: 10px;
      border-radius: 6px;
      width: 100%;
    }

    .permissions-group label {
      display: block;
      margin: 5px 0;
    }

    .tmadclic:hover {
    box-shadow: inset 0 0 25px 5px #fff, 0 0 3px 1px #198754;
}

.coview {
    width: 100%;
    height: 100%;
}

.csview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: #c9c9c9;
    padding: 7px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    transition: background-color 0.3s ease;
    margin: 5px 10px;
    border: 1px solid #c9c9c9;
}

    .csview-btn:hover {
      background-color: #3e8e41;
      color: #fff;
    }

.cp {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#socialShare {
    display: flex;
    z-index: 1000;
    transition: right 0.3s;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    transition: 1.75s
}

#socialShare:hover {
  right: 0; /* يظهر عند تمرير الماوس */
}

    
.twitter:hover { background-color: #1DA1F2; opacity: 1; color: #fff;}
.facebook:hover { background-color: #1877F2; opacity: 1; color: #fff;}
.whatsapp:hover { background-color: #25D366; opacity: 1; color: #fff;}
.telegram:hover { background-color: #0088cc; opacity: 1; color: #fff;}
.tiktok:hover { background-color: #010101; opacity: 1; color: #fff; }
.instagram:hover { background-color: #E1306C; opacity: 1; color: #fff; }
.snapchat:hover { background-color: #FFFC00; opacity: 1; color: #000; } /* خلفية صفراء ونص أسود */
  

.share-btn {
    width: 35px;
    height: 35px;
    text-align: center;
    color: #c9c9c9;
    font-size: 17px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    border: 1px solid #c9c9c9;
    opacity: 0.9;
}

@media (max-width: 600px) {
.regstr_evants, #toggle-ended-btn {
    font-size: 0;
    padding: 10px;
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: max-content;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    padding: 0 5px;
    font-size: 14px;
}

.modal {
    padding: 50px 0px;
}
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.remember-me input[type="checkbox"] {
  margin-left: 5px;
}

.button-group {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    align-items: center;
    text-decoration: none;
    padding: 0 0 0 5px;
    height: 5px;
}

    @keyframes pulse {
      0% { opacity: 0.5; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.05); }
      100% { opacity: 0.5; transform: scale(1); }
    }

