        /* css/register.css */
        @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

        :root {
            --bg-color: #f8fafc;
            --text-color: #0f172a;
            --card-bg: #ffffff;
            --card-border: rgba(56, 189, 248, 0.2);
            --primary-color: #0284c7;
            --accent-color: #38bdf8;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
        }

        body.dark-mode {
            --bg-color: #030712;
            --text-color: #f8fafc;
            --card-bg: rgba(15, 23, 42, 0.75);
            --card-border: rgba(56, 189, 248, 0.25);
            --primary-color: #38bdf8;
            --accent-color: #818cf8;
            --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow-x: hidden;
            padding: 40px 20px;
        }

        /* خلفية الأمواج والإضاءات الهادئة */
        .waves-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }

        .waves-wrapper .particle {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            filter: blur(60px);
            opacity: 0.15;
            animation: smoothGlow 12s ease-in-out infinite alternate;
        }

        .waves-wrapper .particle:nth-child(2) {
            width: 350px;
            height: 350px;
            top: 10%;
            left: 15%;
            background: #38bdf8;
        }

        .waves-wrapper .particle:nth-child(3) {
            width: 450px;
            height: 450px;
            top: 30%;
            right: 10%;
            background: #0284c7;
            animation-delay: 4s;
        }

        .waves-wrapper .particle:nth-child(4) {
            width: 300px;
            height: 300px;
            bottom: 20%;
            left: 30%;
            background: #818cf8;
            animation-delay: 2s;
        }

        @keyframes smoothGlow {
            0% { transform: scale(0.9) translate(0, 0); opacity: 0.1; }
            50% { transform: scale(1.1) translate(20px, -15px); opacity: 0.22; }
            100% { transform: scale(1) translate(-15px, 20px); opacity: 0.12; }
        }

        .wave {
            position: absolute;
            bottom: -60px;
            left: 0;
            width: 200%;
            height: 220px;
            background-repeat: repeat-x;
        }

        .wave-one {
            background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,20 C150,110 350,-20 500,40 C650,100 900,0 1200,30 L1200,120 L0,120 Z" fill="%2338bdf8" fill-opacity="0.20"/></svg>');
            animation: waveFlow 18s linear infinite;
            z-index: 1;
        }

        .wave-two {
            background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C200,10 400,90 600,50 C800,10 1000,80 1200,40 L1200,120 L0,120 Z" fill="%230284c7" fill-opacity="0.16"/></svg>');
            animation: waveFlowReverse 24s linear infinite;
            bottom: -75px;
            z-index: 2;
        }

        .wave-three {
            background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 C180,80 360,20 540,60 C720,100 960,30 1200,50 L1200,120 L0,120 Z" fill="%23818cf8" fill-opacity="0.12"/></svg>');
            animation: waveFlow 30s linear infinite;
            bottom: -90px;
            z-index: 3;
        }

        .wave-four {
            background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C250,20 450,110 700,40 C950,-20 1050,90 1200,60 L1200,120 L0,120 Z" fill="%2338bdf8" fill-opacity="0.10"/></svg>');
            animation: waveFlowReverse 14s linear infinite;
            bottom: -45px;
            z-index: 4;
        }

        @keyframes waveFlow {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        @keyframes waveFlowReverse {
            0% { transform: translateX(-50%); }
            100% { transform: translateX(0); }
        }

        .form-container {
            max-width: 600px;
            width: 100%;
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            padding: 35px;
            box-shadow: var(--shadow);
            position: relative;
            z-index: 10;
            animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .top-controls {
            background: var(--bg-color);
            border: 1px solid var(--card-border);
            padding: 10px 15px;
            border-radius: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            gap: 10px;
            flex-wrap: wrap;
        }

        .utility-btn {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: #fff;
            border: none;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 700;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-block;
        }

        a#homeBtnText {
            background: linear-gradient(135deg, #64748b, #94a3b8);
            box-shadow: 0 4px 15px rgba(100, 116, 139, 0.25);
        }

        .utility-btn:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
        }

        h2 {
            font-size: 1.8rem;
            font-weight: 900;
            text-align: center;
            margin-bottom: 25px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            font-size: 0.95rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-color);
            border: 1px solid var(--card-border);
            color: var(--text-color);
            border-radius: 12px;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
        }

        /* تحسين مظهر حقل التاريخ والـ Popup بشكل احترافي */
        input[type="date"] {
            cursor: pointer;
            position: relative;
        }

        /* تنسيق النصوص والأجزاء الداخلية لحقل التاريخ لضمان التوافق مع الخطوط والتصميم */
        input[type="date"]::-webkit-datetime-edit {
            font-family: 'Tajawal', sans-serif;
            color: var(--text-color);
        }

        input[type="date"]::-webkit-datetime-edit-fields-wrapper {
            padding: 0;
        }

        /* تخصيص أيقونة التقويم في مختلف المتصفحات لتتوافق مع الوضعين */
        input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            filter: invert(0.5);
            opacity: 0.8;
            transition: 0.3s;
            padding: 4px;
            border-radius: 6px;
        }

        input[type="date"]::-webkit-calendar-picker-indicator:hover {
            background: rgba(56, 189, 248, 0.15);
            opacity: 1;
        }

        body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }

        /* تخصيص حقل رقم التحويل بلون فوشيا مميز */
        .form-group input[name="transferNumber"] {
            border-color: #d946ef;
            color: #d946ef;
            font-weight: 700;
        }

        .form-group input[name="transferNumber"]:focus {
            border-color: #e879f9;
            box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.2);
        }

        .action-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: #fff;
            border: none;
            padding: 14px;
            font-size: 1.1rem;
            font-weight: 800;
            border-radius: 14px;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-top: 10px;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
        }

        @media (max-width: 768px) {
            .form-container {
                padding: 20px;
                margin: 10px;
            }
            .top-controls {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
        }

        /* تنسيقات الشريط الجانبي */
.app-sidebar {
    position: fixed;
    top: 0;
    right: 0; /* اجعلها left: 0 إذا كنت تريده في الجانب الأيسر */
    width: 280px;
    height: 100vh;
    background: var(--card-bg, #ffffff);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--card-border, rgba(56, 189, 248, 0.2));
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

/* دعم الوضع الداكن تلقائياً مع متغيرات موقعك */
body.dark-mode .app-sidebar {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
}

/* حاوية اللوجو مع تأثير حركة وإضاءة خفيفة */
.sidebar-logo-container {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.3;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
}

.sidebar-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.sidebar-title {
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color, #0284c7), var(--accent-color, #38bdf8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

/* قائمة الروابط الجانبية */
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.sidebar-menu li a, 
.sidebar-theme-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-radius: 14px;
    color: var(--text-color, #0f172a);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* تأثير عند المرور بالماوس (Hover) مع حركة انزلاق خفيفة */
.sidebar-menu li a:hover, 
.sidebar-theme-btn:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(56, 189, 248, 0.15));
    color: var(--primary-color, #0284c7);
    transform: translateX(-5px); /* عكس الاتجاه لو الشريط على اليسار خليها 5px */
}

.sidebar-menu li a.active {
    background: linear-gradient(135deg, var(--primary-color, #0284c7), var(--accent-color, #38bdf8));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

/* زر إظهار وإخفاء القائمة للموبايل */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, rgba(56, 189, 248, 0.3));
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-toggle-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color, #0f172a);
    transition: 0.3s;
}

/* التجاوب مع الهواتف والشاشات الصغيرة */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(100%); /* إخفاء الشريط جانبياً على الموبايل */
    }
    .app-sidebar.active {
        transform: translateX(0);
    }
    .sidebar-toggle-btn {
        display: flex;
    }
    /* ترك مساحة للمحتوى الرئيسي إذا لزم الأمر */
    body {
        padding-right: 20px !important;
    }
}

    /* التحكم بظهور النصوص العربية والإنجليزية بناءً على لغة الصفحة الحالية */
    html[dir="rtl"] .en-text,
    html[dir="ltr"] .ar-text {
        display: none !important;
    }

    /* التثبيت في زاوية الصفحة العلوية (يمين للعرّبية، يسار للإنجليزية) */
    .side-info-container {
        position: fixed;
        top: 20px;
        z-index: 99999;
        font-family: 'Cairo', sans-serif;
    }

    html[dir="rtl"] .side-info-container {
        right: 20px;
    }

    html[dir="ltr"] .side-info-container {
        left: 20px;
    }

    /* تصميم الزر الرئيسي */
    .side-main-btn {
        background: linear-gradient(135deg, #9333ea, #6b21a8);
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
        transition: background 0.3s ease, transform 0.2s ease;
    }

    .menu-icon-symbol {
        font-size: 16px;
        font-weight: bold;
    }

    .side-main-btn:hover {
        background: linear-gradient(135deg, #a855f7, #7e22ce);
        transform: scale(1.05);
    }

    .arrow-icon {
        font-size: 8px;
        transition: transform 0.3s ease;
    }

    /* القائمة المنسدلة */
    .side-submenu {
        position: absolute;
        top: 125%;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        width: 190px;
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: fadeInSubSide 0.3s ease;
    }

    html[dir="rtl"] .side-submenu {
        right: 0;
        text-align: right;
    }

    html[dir="ltr"] .side-submenu {
        left: 0;
        text-align: left;
    }

    @keyframes fadeInSubSide {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* عناصر القائمة الرئيسية */
    .side-submenu-item {
        padding: 11px 15px;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease, padding-inline-start 0.2s ease;
    }

    .side-submenu-item:hover {
        background: rgba(147, 51, 234, 0.4);
    }

    /* مجموعة الرياضات المتوفرة */
    .submenu-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
    }

    /* العنوان الرئيسي للرياضات (بخط أصغر) */
    .side-submenu-title {
        padding: 8px 15px;
        color: #c084fc;
        font-size: 12px; /* خط أصغر كما طلبت */
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* عناصر الرياضات الفرعية الأربع */
    .side-submenu-subitem {
        padding: 7px 15px 7px 25px; /* مسافة أعمق قليلاً للتمييز */
        color: #e2e8f0;
        text-decoration: none;
        font-size: 12px; /* خط أصغر ومناسب */
        display: block;
        transition: background 0.2s ease, color 0.2s ease;
    }

    html[dir="ltr"] .side-submenu-subitem {
        padding: 7px 25px 7px 15px;
    }

    .side-submenu-subitem:hover {
        background: rgba(147, 51, 234, 0.25);
        color: #ffffff;
    }

    /* تفعيل القائمة وإدارة السهم */
    .side-info-container.active .side-submenu {
        display: flex;
    }

    .side-info-container.active .arrow-icon {
        transform: rotate(180deg);
    }

        /* التحكم بظهور النصوص العربية والإنجليزية بناءً على لغة الصفحة الحالية */
    html[dir="rtl"] .en-text,
    html[dir="ltr"] .ar-text {
        display: none !important;
    }

    /* التثبيت في زاوية الصفحة العلوية (يمين للعربية، يسار للإنجليزية) */
    .side-info-container {
        position: fixed;
        top: 20px;
        z-index: 99999;
        font-family: 'Cairo', sans-serif;
    }

    html[dir="rtl"] .side-info-container {
        right: 20px;
    }

    html[dir="ltr"] .side-info-container {
        left: 20px;
    }

    /* تصميم الزر الرئيسي */
    .side-main-btn {
        background: linear-gradient(135deg, #9333ea, #6b21a8);
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
        transition: background 0.3s ease, transform 0.2s ease;
    }

    .menu-icon-symbol {
        font-size: 16px;
        font-weight: bold;
    }

    .side-main-btn:hover {
        background: linear-gradient(135deg, #a855f7, #7e22ce);
        transform: scale(1.05);
    }

    .arrow-icon {
        font-size: 8px;
        transition: transform 0.3s ease;
    }

    /* القائمة المنسدلة */
    .side-submenu {
        position: absolute;
        top: 125%;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        width: 190px;
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: fadeInSubSide 0.3s ease;
    }

    html[dir="rtl"] .side-submenu {
        right: 0;
        text-align: right;
    }

    html[dir="ltr"] .side-submenu {
        left: 0;
        text-align: left;
    }

    @keyframes fadeInSubSide {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* تنسيق عنوان القائمة في البداية */
    .submenu-header-title {
        padding: 10px 15px 4px 15px;
        color: #d8b4fe;
        font-size: 13px;
        font-weight: bold;
        text-align: center;
    }

    /* الخط الفاصل */
    .submenu-divider {
        height: 1px;
        background: rgba(168, 85, 247, 0.4);
        margin: 4px 10px 8px 10px;
    }

    /* عناصر القائمة الرئيسية */
    .side-submenu-item {
        padding: 10px 15px;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease;
    }

    .side-submenu-item:hover {
        background: rgba(147, 51, 234, 0.4);
    }

    /* مجموعة الرياضات المتوفرة */
    .submenu-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
    }

    /* العنوان الرئيسي للرياضات (بخط أصغر) */
    .side-submenu-title {
        padding: 8px 15px;
        color: #c084fc;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* عناصر الرياضات الفرعية الأربع */
    .side-submenu-subitem {
        padding: 6px 15px 6px 25px;
        color: #e2e8f0;
        text-decoration: none;
        font-size: 12px;
        display: block;
        transition: background 0.2s ease, color 0.2s ease;
    }

    html[dir="ltr"] .side-submenu-subitem {
        padding: 6px 25px 6px 15px;
    }

    .side-submenu-subitem:hover {
        background: rgba(147, 51, 234, 0.25);
        color: #ffffff;
    }

    /* تفعيل القائمة وإدارة السهم */
    .side-info-container.active .side-submenu {
        display: flex;
    }

    .side-info-container.active .arrow-icon {
        transform: rotate(180deg);
    }
    