
        /* ============================================= */
        /* التنسيقات العامة */
        /* ============================================= */
        
        body {
            direction: rtl;
            text-align: center;
            font-family: Arial, sans-serif;
            font-size: 20px;
            margin: 0;
            padding: 20px;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #257247;
        }

        /* تصميم الحاوية الرئيسية */
        .container {
            background-color: #E7E7E7;
            background-image: url('pic/01.gif'); /* صورة خلفية */
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            max-width: 1000px;
            width: 100%;
            text-align: right;
            margin: 20px auto;
        }

        /* ============================================= */
        /* تنسيق البنر */
        /* ============================================= */
        
        .banner-image {
            width: 100%;
            height: auto;
            display: block;
            margin-bottom: 30px;
        }

        /* ============================================= */
        /* التاريخ الميلادي في أعلى الصفحة - نسخة محسنة */
        /* ============================================= */
        
.current-date {
    width: 80%;                /* التحكم في عرض التاريخ أسفل اللوقو */
    height: auto;              
    font-size: 23px;
	font-weight: bold; 
    color: #003322;              /* النص أبيض */
    text-align: center;
    margin: 2px auto;
    padding: 2px 20px;
    background: #F2DFC5;        /* داخلها أسود */
    border: 3px solid orange; /* بروز باللون البرتقالي */
    border-radius: 12px;      /* مستطيل بزوايا ناعمة */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}


        /* ============================================= */
        /* تنسيق خيارات السنة والشهر */
        /* ============================================= */
        
        .label-blue {
            font-weight: bold;
            font-size: 1.2em;
            color: #000080;
        }

        select {
            font-size: 1.5em;
            padding: 10px 10px;
            border-radius: 10px;
            border: 10px solid #000000;
            background: #FFFFB9;
            color: #000000;
            text-align: center;
            text-align-last: center;
            cursor: pointer;
        }

        select option {
            background: #ffffff;
            color: #000000;
        }

        /* ============================================= */
        /* تنسيق زر العودة وزر لوحة التحكم وزر الشهر الحالي */
        /* ============================================= */
        
        .reset-button {
            font-size: 30px;
            padding: 15px 25px;
            margin: 20px;
            background-color: #00B900;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            display: inline-block;
        }

        .reset-button:hover {
            background-color: #e60000;
        }
        
        .dashboard-button {
            font-size: 30px;
            padding: 15px 25px;
            margin: 20px;
            background-color: #8B4513;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }
        
        .dashboard-button:hover {
            background-color: #5a2d0c;
        }

        /* تنسيق زر الشهر الحالي */
        .current-month-button {
            font-size: 28px;
            padding: 12px 25px;
            margin: 20px auto;
            background: linear-gradient(135deg, #257247, #1a5f3a);
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            display: inline-block;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            font-weight: bold;
        }
        
        .current-month-button:hover {
            background: linear-gradient(135deg, #1a5f3a, #0e3d26);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.25);
        }
        
        .button-wrapper {
            text-align: right;
            margin: 10px 0;
        }

        /* ============================================= */
        /* تنسيق الجدول - جميع النصوص عريضة */
        /* ============================================= */
        
        .table-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        table {
            width: 100%;
            table-layout: fixed;
            border-collapse: collapse;
            margin-top: 30px;
            clear: both;
        }

        /* تحديد عرض الأعمدة بدقة */
        th:nth-child(1), td:nth-child(1) { width: 20%; }
        th:nth-child(2), td:nth-child(2) { width: 31%; }
        th:nth-child(3), td:nth-child(3) { width: 31%; }
        th:nth-child(4), td:nth-child(4) { width: 18%; }

        table, th, td {
            border: 1px solid black;
        }

        th, td {
            padding: 15px;
            text-align: center;
            font-size: 32px;
            font-weight: bold;
            word-wrap: break-word;
            transition: all 0.2s ease;
        }

        th {
            background-color: #333;
            color: #fff;
        }

        /* تنسيق اليوم الحالي */
        tr.current-day td {
            background-color: #00B900 !important;
            color: white !important;
        }

        tr.current-day td.gregorian-date {
            background-color: #00B900 !important;
            color: white !important;
        }

        tr.current-day td.hijri-date {
            background-color: #00B900 !important;
            color: white !important;
        }

        tr.current-day td.day-name {
            background-color: #008000 !important;
            color: white !important;
        }

        tr.current-day td.events-cell {
            background-color: #00B900 !important;
            color: white !important;
        }

		
	



	
        /* تنسيق أعمدة الجدول */
        td.gregorian-date {
            font-size: 40px;
            background-color: #E1E1E1;
            color: #000;
        }

        td.hijri-date {
            font-size: 40px;
            background-color: #FFD5AA;
            color: #2c1810;
        }

        td.day-name {
            font-size: 40px;
            background-color: #326565;
            color: white;
        }

	



	
		
        td.events-cell {
            font-size: 25px;
            background-color: #FFF9C4;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        td.events-cell:hover {
            background-color: #FFE082;
            transform: scale(0.98);
        }
        
        /* تنسيق دوائر الألوان في خلية المناسبات */
        .events-colors-container {
            display: flex;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 5px;
        }
        
        .event-color-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: inline-block;
            transition: transform 0.2s;
        }
        
        .event-color-dot:hover {
            transform: scale(1.2);
        }

        /* استعلامات ميديا للشاشات الصغيرة */
        @media (max-width: 992px) {
            th, td { font-size: 20px; }
            td.day-name { font-size: 28px; }
            td.hijri-date, td.gregorian-date { font-size: 18px; }
            td.events-cell { font-size: 16px; }
            .event-color-dot { width: 15px; height: 15px; }
        }

        @media (max-width: 768px) {
            th, td { 
                padding: 8px;
                font-size: 14px;
            }
            td.day-name { font-size: 18px; }
            td.hijri-date, td.gregorian-date { font-size: 12px; }
            td.events-cell { font-size: 11px; }
            .current-month-button, .reset-button, .dashboard-button {
                font-size: 20px;
                padding: 10px 20px;
            }
            .event-color-dot { width: 12px; height: 12px; }
        }

        /* تنسيقات إضافية */
        tbody tr:hover td {
            background-color: rgba(0, 0, 0, 0.05);
        }

        .success-message {
            background-color: #d4edda;
            color: #155724;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
            text-align: center;
            animation: fadeOut 3s forwards;
        }

        @keyframes fadeOut {
            0% { opacity: 1; }
            70% { opacity: 1; }
            100% { opacity: 0; visibility: hidden; }
        }

        /* ============================================= */
        /* تنسيق نموذج الاختيار */
        /* ============================================= */
        
        .form-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .form-group {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .buttons-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            flex-wrap: wrap;
            gap: 20px;
        }

        /* ============================================= */
        /* تنسيق النافذة المنبثقة (Modal) - مخفية بشكل افتراضي */
        /* ============================================= */
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }
        
        .modal-content h3 {
            color: #257247;
            font-size: 28px;
            margin-bottom: 20px;
        }
        
        .modal-content .event-date {
            background-color: #f0f0f0;
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 20px;
        }
        
        .modal-content .event-date.hijri-date-modal {
            background-color: #FFD5AA;
            margin-top: 10px;
        }
        
        .modal-content .events-list {
            text-align: right;
            margin: 20px 0;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .modal-content .event-item {
            background-color: #f9f9f9;
            padding: 12px;
            margin: 8px 0;
            border-radius: 8px;
            border-right: 4px solid;
        }
        
        .modal-content .event-name {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            display: block;
        }
        
        .modal-content .event-description {
            font-size: 14px;
            color: #666;
            margin-top: 5px;
        }
        
        .modal-content .recurring-badge {
            display: inline-block;
            background: #8b5cf6;
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 20px;
            margin-right: 10px;
        }
        
        .modal-content .close-modal {
            background-color: #6c757d;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            margin-top: 20px;
        }
        
        .modal-content .close-modal:hover {
            background-color: #5a6268;
        }
        
        .modal-content .no-events-msg {
            color: #999;
            font-size: 18px;
            padding: 20px;
        }
        
        .modal-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .dashboard-link-modal {
            background-color: #8B4513;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 16px;
            display: inline-block;
        }
        
        .dashboard-link-modal:hover {
            background-color: #5a2d0c;
        }

        .events-link {
            color: #257247;
            text-decoration: none;
            font-weight: bold;
            display: inline-block;
            padding: 5px 10px;
            border-radius: 20px;
            transition: all 0.3s;
        }
        
        .events-link:hover {
            background-color: #257247;
            color: white;
        }

        /* إزالة تأثير float بعد الزر */
        .clearfix {
            clear: both;
            margin-top: 60px;
        }
        
        .separator {
            margin: 20px 0;
            text-align: center;
        }
        
        .welcome-title {
            text-align: center;
            color: #1a5f3a;
            margin-bottom: 30px;
            font-size: 28px;
        }
 