/* الألوان الأساسية لـ SPRIX */
:root {
    --sprix-blue: #1b1b52;
    --sprix-pink: #e6007e;
    --sprix-bg: #f8f9fa;
}

/* تنسيق الأزرار */
.btn-sprix {
    background-color: var(--sprix-pink);
    color: white;
    border: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-sprix:hover {
        background-color: #c4006a;
        color: white;
    }

/* تنسيق البطاقات (Cards) */
.card-sprix {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
}

/* الشريط العلوي */
.top-navbar {
    background-color: white;
    border-bottom: 4px solid var(--sprix-pink);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .top-navbar h2 {
        color: var(--sprix-blue);
        margin: 0;
        font-weight: 700;
    }

/* تنسيقات القائمة الجانبية (Sidebar) */
/*.sidebar {
    background-color: var(--sprix-blue);
    min-height: 100vh;
    color: white;
    padding-top: 20px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

    .sidebar .logo-area {
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 20px;
    }

    .sidebar a {
        color: #cfcfcf;
        text-decoration: none;
        padding: 15px 25px;
        display: block;
        font-weight: 600;
        transition: 0.3s;
        font-size: 1.1rem;
    }

        .sidebar a i {
            margin-left: 10px;
            font-size: 1.2rem;
        }

        .sidebar a:hover, .sidebar a.active {
            background-color: var(--sprix-pink);
            color: white;
            border-right: 5px solid white;
        }*/

        /* تنسيق الروابط المقفولة في القائمة الجانبية */
        /*.sidebar a.locked-link {
            color: rgba(255, 255, 255, 0.3) !important;*/ /* لون رمادي/أبيض فاتح جداً وشفاف */
            /*cursor: not-allowed;
        }

            .sidebar a.locked-link:hover {
                background-color: transparent !important;
                border-right: none !important;
            }*/

/* تنسيقات القائمة الجانبية (Sidebar) مع دعم ثبات العرض والتجاوب */
.sidebar {
    background-color: var(--sprix-blue);
    min-height: 100vh;
    width: 260px; /* عرض ثابت */
    flex-shrink: 0; /* السر هنا: يمنع انكماش وتصغير القائمة نهائياً */
    color: white;
    padding-top: 20px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out; /* حركة ناعمة عند الفتح والإغلاق للموبايل */
    z-index: 1040;
}

    .sidebar .logo-area {
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 20px;
    }

    .sidebar a {
        color: #cfcfcf;
        text-decoration: none;
        padding: 15px 25px;
        display: block;
        font-weight: 600;
        transition: 0.3s;
        font-size: 1.1rem;
    }

        .sidebar a i {
            margin-left: 10px;
            font-size: 1.2rem;
        }

        .sidebar a:hover, .sidebar a.active {
            background-color: var(--sprix-pink);
            color: white;
            border-right: 5px solid white;
        }

        .sidebar a.locked-link {
            color: rgba(255, 255, 255, 0.3) !important;
            cursor: not-allowed;
        }

            .sidebar a.locked-link:hover {
                background-color: transparent !important;
                border-right: none !important;
            }

/* زر إظهار القائمة (الهامبرغر) مخفي في الشاشات الكبيرة */
.menu-toggle-btn {
    display: none;
}

/* خلفية سوداء شفافة تظهر وراء القائمة في الموبايل */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
}

/* === إعدادات الشاشات الصغيرة والموبايل === */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        transform: translateX(100%); /* إخفاء القائمة لليمين في وضع RTL */
    }

        /* عندما يتم إضافة كلاس open من الكود، تظهر القائمة */
        .sidebar.open {
            transform: translateX(0);
        }

    /* إظهار زر القائمة في الشاشات الصغيرة */
    .menu-toggle-btn {
        display: block;
    }

    /* إظهار الخلفية الشفافة عند فتح القائمة */
    .sidebar-overlay.show {
        display: block;
    }

    /* تصغير حجم خط الترحيب ليتناسب مع الموبايل */
    .top-navbar h5 {
        font-size: 1rem;
    }
}

.timer-blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* تأثيرات التمرير (Hover) الاحترافية للإشعارات */
.news-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* عند وقوف الماوس على السطر بأكمله */
    .news-item:hover {
        background-color: #f8f9fa;
        transform: translateX(-8px); /* دفع خفيف لليسار */
        box-shadow: 2px 2px 10px rgba(0,0,0,0.05); /* ظل خفيف */
    }

.news-text {
    color: var(--sprix-blue);
    transition: color 0.3s ease;
}

/* تغيير لون وخط النص عند التمرير */
.news-item:hover .news-text {
    color: var(--sprix-pink) !important;
    text-decoration: underline;
}
