        * {
            font-family: 'Tajawal', Arial, sans-serif;
        }
        body {
            margin: 0;
            padding: 0;
            height: 100%;
        }
        .topparr {
            background-color: #F3F3F3;
            height: 70px;
            width: 96%;
            margin: 10px auto;
            border-radius: 15px;
            border-bottom: 3px solid black;
            position: fixed;
            overflow: hidden;
            display: flex;
            align-items: center;
            padding: 0 15px;
            justify-content: space-between;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: background-color 0.3s, border-color 0.3s;
            flex-direction: row-reverse;
            top: 3px;
            z-index: 9999;
            direction: rtl;
            left: 2%;
        }

        body.dark-theme .topparr {
            background-color: #2d2d2d;
            border-bottom: 3px solid #666;
        }

        .left-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .topparr img {
            height: 110px;
            width: auto;
            object-fit: contain;
        }

        /* الأزرار على الشمال (بعد العكس) */
        .bottom {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .bottom a {
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        #login {
            background: white;
            color: black;
            border: 2px solid blue;
        }
        #login:hover {
            background: #f0f0f0;
        }
        #creat {
            background: blue;
            color: white;
            border: 2px solid blue;
        }
        #creat:hover {
            background: #0000cc;
        }
        body.dark-theme #login {
            background: #333;
            color: white;
            border: 2px solid #555;
        }
        body.dark-theme #login:hover {
            background: #444;
        }
        
        /* From Uiverse.io by Galahad */ 
/* From Uiverse.io by Galahad */ 
.theme-switch {
    --toggle-size: 30px;
    --container-width: 5.625em;
    --container-height: 2.5em;
    --container-radius: 6.25em;
    --container-light-bg: #3D7EAE;
    --container-night-bg: #1D1F2C;
    --circle-container-diameter: 3.375em;
    --sun-moon-diameter: 2.125em;
    --sun-bg: #ECCA2F;
    --moon-bg: #C4C9D1;
    --spot-color: #959DB1;
    --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    --stars-color: #fff;
    --clouds-color: #F3FDFF;
    --back-clouds-color: #AACADF;
    --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
    --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
    display: inline-block;
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.theme-switch__container {
    width: var(--container-width);
    height: var(--container-height);
    background-color: var(--container-light-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    cursor: pointer;
    -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
    box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    position: relative;
}

.theme-switch__container::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    border-radius: var(--container-radius)
}

.theme-switch__checkbox {
    display: none;
}

.theme-switch__circle-container {
    width: var(--circle-container-diameter);
    height: var(--circle-container-diameter);
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: var(--circle-container-offset);
    top: var(--circle-container-offset);
    border-radius: var(--container-radius);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: var(--circle-transition);
    -o-transition: var(--circle-transition);
    transition: var(--circle-transition);
    pointer-events: none;
}

.theme-switch__sun-moon-container {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    width: var(--sun-moon-diameter);
    height: var(--sun-moon-diameter);
    margin: auto;
    border-radius: var(--container-radius);
    background-color: var(--sun-bg);
    -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    overflow: hidden;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.theme-switch__moon {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    background-color: var(--moon-bg);
    border-radius: inherit;
    -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    position: relative;
}

.theme-switch__spot {
    position: absolute;
    top: 0.75em;
    left: 0.312em;
    width: 0.75em;
    height: 0.75em;
    border-radius: var(--container-radius);
    background-color: var(--spot-color);
    -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__clouds {
    width: 1.25em;
    height: 1.25em;
    background-color: var(--clouds-color);
    border-radius: var(--container-radius);
    position: absolute;
    bottom: -0.625em;
    left: 0.312em;
    -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
    position: absolute;
    color: var(--stars-color);
    top: -100%;
    left: 0.312em;
    width: 2.75em;
    height: auto;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

/* تكامل مع وضع الصفحة */
body.dark-theme .theme-switch__container {
    background-color: var(--container-night-bg) !important;
}

body.dark-theme .theme-switch__circle-container {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter)) !important;
}

body.dark-theme .theme-switch__moon {
    -webkit-transform: translate(0) !important;
    -ms-transform: translate(0) !important;
    transform: translate(0) !important;
}

body.dark-theme .theme-switch__clouds {
    bottom: -4.062em !important;
}

body.dark-theme .theme-switch__stars-container {
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
}

body:not(.dark-theme) .theme-switch__container {
    background-color: var(--container-light-bg) !important;
}

body:not(.dark-theme) .theme-switch__circle-container {
    left: var(--circle-container-offset) !important;
}

body:not(.dark-theme) .theme-switch__moon {
    -webkit-transform: translateX(100%) !important;
    -ms-transform: translateX(100%) !important;
    transform: translateX(100%) !important;
}

body:not(.dark-theme) .theme-switch__clouds {
    bottom: -0.625em !important;
}

body:not(.dark-theme) .theme-switch__stars-container {
    top: -100% !important;
    -webkit-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

body.dark-theme .theme-switch__circle-container:hover {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) + 0.187em) !important;
}

body:not(.dark-theme) .theme-switch__circle-container:hover {
    left: calc(var(--circle-container-offset) + 0.187em) !important;
}

.theme-switch__checkbox {
    pointer-events: none;
}

.theme-switch {
    margin-left: 15px;
    align-self: center;
}

@media (max-width: 768px) {
    .theme-switch {
        --toggle-size: 25px;
        --container-width: 4.5em;
        --container-height: 2em;
        --circle-container-diameter: 2.8em;
        --sun-moon-diameter: 1.7em;
    }
}
        /* يخلي كل المحتوى في النص */
        .system-container, 
        .rows-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 30px 0;
            font-size: 1.2em;
        }

        /* الاستايل للقائمة المنسدلة */
        .system-container select {
            font-size: 1.2em;
            padding: 10px 20px;
            margin-top: 10px;
            border-radius: 8px;
            border: 1px solid #ccc;
            cursor: pointer;
        }

        /* النص اللي فوق الكروت */
        #systemTitle {
            font-size: 1.5em;
            font-weight: bold;
            margin-bottom: 20px;
        }

        /* حاوية الكروت */
        .diploma-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            justify-content: center;
            width: 100%;
            max-width: 1000px;
            position: relative;
            left: 100px;

        }

        /* تصميم الكارت */
        .class-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #333;
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            background-color: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            width: 280px;
            height: 300px;
        }

        .class-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .class-icon-container {
            width: 100%;
            height: 70%;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .class-icon-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0;
        }

        .class-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            width: 90%;
            padding: 15px 15px;
            /* flex-direction: row-reverse; */
        }

        .class-name {
            font-size: 1.5em;
            font-weight: bold;
            color: black;
            text-align: right;
        }

        .class-arrow {
            background-color: #007bff;
            color: #fff;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
            transform: rotate(180deg);
        }

        .class-arrow:hover {
            background-color: #0056b3;
        }
        
        .header-spacer {
            height: 90px;
        }
        
        /* الوضع الداكن */
        body.dark-theme {
            background-color: #1e1e1e;
            color: #e0e0e0;
        }

        /* شريط التوب */
        body.dark-theme .topparr {
            background-color: #1e1e1e;
            border-bottom: 3px solid #444;
            box-shadow: 0 2px 8px rgba(0,0,0,0.6);
        }

        /* أزرار الدخول والتسجيل */
        body.dark-theme #login {
            background: #2a2a2a;
            color: #f1f1f1;
            border: 2px solid #555;
        }
        body.dark-theme #login:hover {
            background: #3a3a3a;
        }

        body.dark-theme #creat {
            background: blue;
            border: 2px solid #0056b3;
        }
        body.dark-theme #creat:hover {
            background: #004494;
        }

        /* الكروت */
        body.dark-theme .class-card {
            background-color: #1e1e1e;
            color: #f1f1f1;
            box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        }
        body.dark-theme .class-card:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.8);
        }

        /* اسم الكورس */
        body.dark-theme .class-name {
            color: #f1f1f1;
        }

        /* السهم */
        body.dark-theme .class-arrow {
            background-color: #007bff;
        }
        body.dark-theme .class-arrow:hover {
            background-color: #007bff;
        }

        /* القوائم المنسدلة */
        body.dark-theme .user-dropdown,
        body.dark-theme .notification-dropdown {
            background-color: #1e1e1e;
            border: 1px solid #333;
        }
        body.dark-theme .user-dropdown a,
        body.dark-theme .notification-dropdown .notif-item {
            color: #ddd;
        }
        body.dark-theme .user-dropdown a:hover,
        body.dark-theme .notification-dropdown .notif-item:hover {
            background-color: #2a2a2a;
        }

        /* الإشعارات الغير مقروءة */
        body.dark-theme .notif-item.unread {
            background-color: #2a2a2a;
            font-weight: bold;
        }

        /* القائمة المنسدلة للنظام */
        body.dark-theme select {
            background-color: #1e1e1e;
            color: #f1f1f1;
            border: 1px solid #444;
        }
        
        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        footer {
            background: #111;
            padding: 40px 80px 20px;
            margin-top: 50px;
            margin-bottom: 0;
            justify-content: space-between;
            direction: rtl;
            position: relative;
            top:50px;
        }

        .footer-container {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 40px;
            align-items: flex-start;
        }

        /* اللوجو والنص */
        .footer-logo p {
            margin-top: 10px;
            font-size: 14px;
            line-height: 1.8;
            color: #ccc;
        }

        /* الروابط */
        .footer-links h3 {
            font-size: 16px;
            margin-bottom: 10px;
            color: #fff;
            margin-top: 10px;
        }

        .footer-links ul {
            list-style: none;
            padding: 0;
            margin: 0;
            margin-top: 30px;
        }

        .footer-links ul li {
            margin: 6px 0;
        }

        .footer-links ul li a {
            text-decoration: none;
            color: #ccc;
            transition: 0.3s;
        }

        .footer-links ul li a:hover {
            color: #f97316;
        }

        /* تواصل معنا */
        .footer-contact h3 {
            font-size: 16px;
            margin-bottom: 15px;
            color: #fff;
        }

        .footer-contact button {
            background: transparent;
            border: 1px solid #0000cc;
            color: #ffffff;
            padding: 8px 18px;
            border-radius: 6px;
            cursor: pointer;
            margin-bottom: 20px;
            transition: 0.3s;
        }

        .footer-contact button:hover {
            background: #f97316;
            color: #fff;
        }

        .social-icons {
            display: flex;
            gap: 12px;
            margin-bottom: 15px;
        }

        .social-icons a {
            color: #fff;
            font-size: 20px;
            transition: 0.3s;
        }

        .social-icons a:hover {
            color: #f97316;
        }

        .footer-contact p {
            margin: 6px 0;
            font-size: 14px;
        }

        .footer-contact p a {
            text-decoration: none;
            color: #ccc;
            transition: 0.3s;
        }

        .footer-contact p a:hover {
            color: #f97316;
        }

        /* أسفل الفوتر */
        .footer-bottom {
            border-top: 1px solid #333;
            text-align: center;
            padding-top: 15px;
            margin-top: 25px;
            margin-bottom: 0;
            font-size: 13px;
            color: #aaa;
        }

        .footer-bottom span {
            color: #f8f8ff;
        }

        /* ريسبونسيف */
        @media(max-width: 900px) {
            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .social-icons {
                justify-content: center;
            }
        }
        
        /* التعديلات على عناصر المستخدم */
        .user-right-group {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-left: auto;
            flex-direction: row-reverse;
        }

        .user-dropdown {
            display: none;
            position: fixed;
            top: 60px;
            right: 20px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
            width: 220px;
            overflow: hidden;
            z-index: 1000;
            text-align: right;
        }

        .user-menu:hover .user-dropdown {
            display: block;
        }

        .user-dropdown a {
            display: block;
            padding: 12px;
            color: #333;
            text-decoration: none;
            transition: background 0.2s;
            font-size: 14px;
        }

        .user-dropdown a:hover {
            background: #f1f1f1;
        }

        /* العنصر الترحيبي */
        .user-dropdown a.hello {
            font-weight: bold;
            background: #f7f7f7;
            color: #333;
            border-bottom: 1px solid #eee;
            cursor: default;
            pointer-events: none;
        }

        .wallet {
            background: #0f1a2d;
            color: #fff;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
        }

        .wallet i {
            margin-left: 6px;
            color: #9ca3af;
        }

        /* الإشعارات */
        .icon {
            position: relative;
        }

        .icon i {
            font-size: 24px;
            color: #000;
            cursor: pointer;
        }

        .icon .badge {
            position: absolute;
            top: -6px;
            right: -10px;
            background: red;
            color: white;
            font-size: 12px;
            font-weight: bold;
            border-radius: 50%;
            padding: 2px 6px;
        }

        /* صورة المستخدم */
        .user-menu {
            position: relative;
            display: inline-block;
        }

        .user-menu img.user {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
        }

        /* زر المحفظة */
        .wallet button {
            background: #0f1a2d;
            color: #fff;
            border: none;
            border-radius: 30px;
            padding: 6px 14px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: background 0.3s;
        }
        .wallet button:hover {
            background: #1e2a45;
        }

        /* قائمة الإشعارات */
        .notification-menu {
            position: relative;
            display: inline-block;
        }

        .notification-dropdown {
            display: none;
            position: fixed;
            top: 60px;
            right: 70px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
            width: 280px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
        }

        .notification-menu:hover .notification-dropdown {
            display: block;
        }

        .notif-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
            color: #333;
        }

        .notif-item.unread {
            background: #f9f9f9;
            font-weight: bold;
            border-right: 3px solid #007bff;
        }

        .notif-item .time {
            display: block;
            font-size: 12px;
            color: #888;
            margin-top: 4px;
        }

        .notif-item.empty {
            text-align: center;
            color: #777;
            font-style: italic;
        }

        /* تعديلات للوضع الداكن */
        body.dark-theme .icon i {
            color: #fff;
        }

        body.dark-theme .wallet {
            background: #1e2a45;
        }

        body.dark-theme .wallet button {
            background: #1e2a45;
        }

        body.dark-theme .wallet button:hover {
            background: #2d3b5a;
        }

        /* تحسينات للشريط العلوي على الشاشات الصغيرة */
        @media (max-width: 768px) {
            .topparr {
                flex-direction: row;
                padding: 0 10px;
             width: 98%;
            }
            #systemTitle{
                font-size: 17px;
            }
            .body{
                max-width: 50x;
            }
            .diploma-cards{
                        position: relative;
        right: 0px;
        left: 20px;
        margin: 0 0 0;
        width: 0%;
            }
            
            .user-right-group {
                        margin-left: 0;
        gap: 10px;
        /* direction: rtl; */
        direction: ltr;
        margin-left: 10px;
            }
            
            .wallet span {
                display: none;
            }
            
            .notification-dropdown {
                right: 10px;
                width: 250px;
            }
            
            .user-dropdown {
                right: 10px;
            }
            
            .topparr img {
                height: 100px;
                position: relative;
                left: 5px;
            }
            
            .left-group {
                gap: 5px;
            }
            .profile-pic{
            position: relative;
            margin-left: 80px;
            bottom: 5px;
            }
            .profile-info{
            position: relative;
             right: 20px;
             margin-right: 40px;

            }
        }
        .ma{
            position: relative;
            left: 380px;
            width: 50%;
            margin: 0;
            padding: 0;
        }
               /* تحسينات للشريط العلوي على الشاشات الصغيرة */
        @media (max-width: 768px) {

            .bottom{
                height: 100%;
                position: relative;
                left: 20px;
            }
             #login{
                height: 40px;
                width: 35px;
                font-size: 12.2px;
                text-align: center;
             }
             #creat{
               height: 40px;
               width: 45px;
               font-size: 12.5px;
               text-align: center;
             }
            
            .user-right-group {
                margin-left: 0;
                gap: 10px;
            }
            
            .wallet span {
                display: none;
            }
            
            .notification-dropdown {
                right: 10px;
                width: 250px;
            }
            
            .user-dropdown {
                right: 170px;
            }
            .menu-item-logout{
                background-color: red;
                color: white;
            }
                                        .ma{
        left: 9px;  /* ألغيت الإزاحة */
        position: relative;
        margin: 0 0 0;
        padding: 0;



        margin-left: 0;
        width: 60%;
    }

        }

.profile-pic {
  width: 50px !important;   /* 👈 الحجم اللي انت عايزه */
  height: 50px !important;
        /* يظبط القص */
  display: block;  
  margin-right: 100px;
  margin-top: 20px;
}

            .phone{
                            position: relative;
             left: 20px;
            }
        /* إظهار المحفظة فوق في الديسكتوب */
.desktop-wallet {
  display: inline-block;
}

.mobile-wallet {
  display: none;
}

/* في الشاشات الصغيرة (موبايل) تخفي الزرار وتظهر المحفظة جوه القائمة */
@media (max-width: 768px) {
  .desktop-wallet {
    display: none;
  }
  .mobile-wallet {
    display: block;
  }
}

.profile-pic {
  width: 50px !important;   /* 👈 الحجم اللي انت عايزه */
  height: 50px !important;
        /* يظبط القص */
  display: block;
  margin-right: 100px;
  margin-top: 20px;
}

            .phone{
                            position: relative;
             left: 20px;
            }
        /* إظهار المحفظة فوق في الديسكتوب */
.desktop-wallet {
  display: inline-block;
}

.mobile-wallet {
  display: none;
}

/* في الشاشات الصغيرة (موبايل) تخفي الزرار وتظهر المحفظة جوه القائمة */
@media (max-width: 768px) {
  .desktop-wallet {
    display: none;
  }
  .mobile-wallet {
    display: block;
  }
}