
/* ✅ تنسيق الجسم */
/* المشكلة: قد يكون الجسم لا يسمح بالتفاعل */
/* الحل: إضافة pointer-events: auto لضمان التفاعل */
body {
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* زيادة المسافة السفلية لتعويض الشريط الثابت */
    background-color: black;
    color: rgb(0, 204, 255);
    pointer-events: auto;
}
/* ✅ خلفية الفيديو */
/* المشكلة: قد يكون الفيديو الخلفي يغطي العناصر ويمنع التفاعل */
/* الحل: إضافة pointer-events: none لمنع التفاعل مع الفيديو الخلفي */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* وضع الفيديو خلف المحتوى */
    object-fit: cover; /* ضمان ملء الشاشة */
    pointer-events: none; /* منع التفاعل مع الفيديو */
}
/* شريط علوي */
/* المشكلة: قد يكون الشريط العلوي يغطي العناصر ويمنع التفاعل */
/* الحل: تقليل z-index وإضافة pointer-events: auto لضمان التفاعل الصحيح */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1e5e507;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

/* الشعار */
.logo {
    height: 50px; /* تعديل الحجم حسب الحاجة */
}

/* صورة المستخدم في الشريط العلوي */
.top-profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    cursor: pointer;
}

/* تنسيق حجم صورة المستخدم لمطابقة حجم الشعار */
.logo-size {
    height: 50px;
    width: 50px;
    margin-left: 30px; /* تحريك الصورة 30 بكسل إلى اليسار */
}

.profile-pic-link {
    display: flex;
    align-items: center;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    position: relative;
}

.notification-btn i {
    color: #333;
}

.notification-btn:hover i {
    color: #007bff;
}

/* قائمة الإشعارات */
/* المشكلة: قد تكون قائمة الإشعارات تغطي العناصر وتمنع التفاعل */
/* الحل: إضافة z-index و pointer-events لضمان التفاعل الصحيح */
.notification-list {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 1001;
    pointer-events: auto;
}

.notification-list p {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* إظهار القائمة عند النقر */
.notification-list.show {
    display: block;
}

/* إخفاء القائمة افتراضيًا */
.hidden {
    display: none;
}

/* ✅ شريط التنقل في الأسفل */
.navbar {
    background-color: #000000; /* أسود تمامًا */
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* جعل الشريط ثابتًا */
    bottom: 0; /* تثبيت الشريط في الأسفل */
    left: 0;
    width: 100%;
    z-index: 998; /* تقليل z-index لمنع التغطية */
    pointer-events: auto; /* السماح بالتفاعل مع الشريط */
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    flex-wrap: nowrap; /* منع العناصر من النزول لسطر جديد */
    justify-content: center; /* توسيط العناصر */
    gap: 5px; /* مسافة بين الأيقونات */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.navbar a {
    color: white; /* اللون الأبيض للنص */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 5px; /* مسافات داخل الروابط */
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* ترتيب عمودي */
    align-items: center;
    justify-content: center;
    min-width: 60px; /* عرض أدنى لكل عنصر */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.navbar a i {
    font-size: 18px; /* حجم الأيقونات */
    margin-bottom: 4px; /* مسافة بين الأيقونة والنص */
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar a.active {
    color: #13ece2; /* اللون المميز للعنصر النشط */
    background-color: rgba(19, 236, 226, 0.15);
    box-shadow: 0 0 10px rgba(19, 236, 226, 0.3);
}

/* تأثير التوهج للعنصر النشط */
/* المشكلة: قد يكون تأثير التوهج يغطي العناصر ويمنع التفاعل */
/* الحل: إضافة pointer-events: none لمنع التفاعل مع تأثير التوهج */
.navbar a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #13ece2, #00b7ff);
    box-shadow: 0 0 8px #13ece2;
    pointer-events: none; /* منع التفاعل مع تأثير التوهج */
}

.navbar img {
    height: 60px;
    margin-right: auto;
}

/* ✅ التأكد من أن الفيديو في الخلف */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ✅ الرأس */
.header {
    background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة فوق الفيديو */
    padding: 20px;
    text-align: center;
    color: #5ac5f7;
    font-size: 24px;
    font-weight: bold;
}

/* ✅ محتوى الصفحة */
.container {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: rgba(111, 119, 233, 0.295); /* خلفية شفافة فوق الفيديو */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(179, 48, 240, 0.2);
}

h1, h2 {
    color: #12da12;
    text-align: center;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #08faee;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #06c7bb;
}

/* ✅ الفوتر */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة */
    border-top: 1px solid #000000;
}

.footer a {
    color: rgb(33, 166, 255);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* ✅ شريط الصفحة الحالية */
.current-page-bar {
    height: 4px;
    background-color: #000000; /* أسود تمامًا */
    transition: all 0.3s ease;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ✅ تصميم قسم الأدوات */
.tools-section {
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة فوق الفيديو */
}

.tools-section h1 {
    color: #12da12;
    font-size: 32px;
    margin-bottom: 40px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 204, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 204, 255, 0.3);
}

.tool-card h2 {
    color: #12da12;
    font-size: 24px;
    margin-bottom: 10px;
}

.tool-card p {
    color: rgb(0, 204, 255);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-btn {
    background-color: #08faee;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative; /* إضافة لاستخدام القوالب */
}

.tool-btn::after {
    content: attr(data-tooltip); /* نص القوالب من الخاصية data-tooltip */
    position: absolute;
    bottom: 100%; /* وضع القوالب فوق الزر */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8); /* خلفية القوالب */
    color: white; /* لون النص */
    padding: 5px 10px;
    pointer-events: none; /* منع التفاعل مع القوالب */
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap; /* منع النص من الانتقال لسطر جديد */
    opacity: 0; /* إخفاء القوالب بشكل افتراضي */
    visibility: hidden; /* إخفاء القوالب بشكل افتراضي */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tool-btn:hover::after {
    opacity: 1; /* إظهار القوابل عند التمرير */
    visibility: visible;
}

/* ✅ التنسيق الإضافي للأدوات */
.tool-section {
    background-color: #616af03f;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 204, 255, 0.2);
}

.tool-btn {
    background-color: #08faee;
    color: black;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: block;
    margin-top: 10px;
    text-decoration: none;
}

.tool-btn:hover {
    background-color: #06c7bb;
}

/* إضافة بلوك شفاف حول المحتوى */
.transparent-block {
    background-color: rgba(255, 255, 255, 0.8); /* شفافية 80% */
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

/* تحسين تنسيق النصوص */
.header, .cta-section, .why-shams-section, .preview-section, .footer {
    margin: 20px 0;
    text-align: center;
}

/* تحسين تنسيق الأزرار */
.cta-button, .preview-button {
    background-color: #00b7ff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    display: inline-block;
}

.cta-button:hover, .preview-button:hover {
    background-color: #ffc400;
}

/* ✅ دعم الشاشات الصغيرة - هواتف */
@media (max-width: 480px) {
    body {
        padding-top: 80px; /* تقليل المسافة العلوية للأجهزة الصغيرة */
        padding-bottom: 70px; /* زيادة المسافة السفلية */
    }

    .top-bar {
        padding: 8px 15px;
    }

    .logo {
        height: 40px;
    }

    .logo-size {
        height: 40px;
        width: 40px;
        margin-left: 15px;
    }

    .top-profile-pic {
        width: 30px;
        height: 30px;
    }

    .navbar {
        padding: 8px 0;
    }

    .nav-links {
        gap: 2px;
    }

    .navbar a {
        font-size: 12px; /* نص أصغر */
        padding: 8px 2px;
        min-width: 50px;
    }

    .navbar a i {
        font-size: 16px; /* حجم الأيقونات */
        margin-bottom: 2px;
    }

    .header {
        font-size: 20px;
        padding: 15px;
    }

    .container {
        padding: 15px;
        margin: 15px auto;
        max-width: 95%; /* جعل العرض أكثر مرونة في الشاشات الصغيرة */
    }

    .tool-card, .tool-section {
        width: calc(100% - 40px); /* عرض كامل مع هوامش */
        margin: 10px;
    }

    .tools-container {
        gap: 10px;
    }

    .cta-button, .preview-button {
        padding: 8px 15px;
        margin: 5px;
        font-size: 14px;
    }
}

/* ✅ دعم الشاشات المتوسطة - أجهزة لوحية */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding-top: 90px;
        padding-bottom: 65px;
    }

    .top-bar {
        padding: 8px 15px;
    }

    .logo {
        height: 45px;
    }

    .logo-size {
        height: 45px;
        width: 45px;
        margin-left: 20px;
    }

    .top-profile-pic {
        width: 33px;
        height: 33px;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-links {
        gap: 3px;
    }

    .navbar a {
        font-size: 13px; /* نص أصغر */
        padding: 10px 3px;
        min-width: 55px;
    }

    .navbar a i {
        font-size: 17px; /* حجم الأيقونات */
        margin-bottom: 3px;
    }

    .header {
        font-size: 22px;
        padding: 18px;
    }

    .container {
        padding: 18px;
        margin: 18px auto;
        max-width: 90%;
    }

    .tool-card, .tool-section {
        width: calc(50% - 40px); /* عرض نصف الشاشة مع هوامش */
    }

    .tools-container {
        gap: 15px;
    }
}

/* ✅ دعم الشاشات الكبيرة - أجهزة كمبيوتر */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        gap: 4px;
    }

    .navbar a {
        font-size: 14px; /* نص أصغر */
        padding: 12px 4px;
        min-width: 65px;
    }

    .navbar a i {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .container {
        max-width: 85%;
    }

    .tool-card, .tool-section {
        width: calc(33.33% - 30px); /* عرض ثلث الشاشة مع هوامش */
    }
}

/* ✅ دعم الشاشات الكبيرة جدًا - شاشات كبيرة */
@media (min-width: 1025px) {
    body {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        gap: 5px;
    }

    .navbar a {
        font-size: 14px;
        padding: 12px 5px;
        min-width: 70px;
    }

    .navbar a i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .container {
        max-width: 80%;
    }

    .tool-card, .tool-section {
        width: 250px; /* عرض ثابت */
    }
}
