/* القائمة السفلية - تصميم مثل تطبيقات الجوال */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #BEB7E2; /* لون بنفسجي فاتح ثابت */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.03);
}

.mobile-nav a {
    color: #666; /* رمادي للأيقونات غير النشطة */
    text-align: center;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    transition: all 0.2s ease;
    flex: 1;
    padding: 6px 0 4px;
    border-radius: 30px;
}

.mobile-nav a i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: #666; /* رمادي للأيقونات غير النشطة */
    transition: all 0.2s ease;
}

.mobile-nav a.active {
    color: #FFD700; /* أصفر للأيقونة النشطة */
    font-weight: 600;
}

.mobile-nav a.active i {
    color: #FFD700; /* أصفر للأيقونة النشطة */
    transform: translateY(-2px);
    text-shadow: 0 3px 8px rgba(255, 215, 0, 0.2); /* ظل أصفر خفيف */
}

.mobile-nav a:hover i {
    transform: scale(1.05);
    color: #FFD700; /* أصفر عند التمرير */
}

/* شريط صغير أنيق للأيقونة النشطة */
.mobile-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 35%;
    width: 30%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #ffeb99); /* تدرج أصفر */
    border-radius: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { width: 0; opacity: 0; left: 50%; }
    to { width: 30%; opacity: 1; left: 35%; }
}

/* تخصيص رابط الإشعارات للنقطة الحمراء */
.mobile-nav a[href="/notifications"] {
    position: relative;
}

.mobile-nav a[href="/notifications"] i {
    display: block;
    position: relative;
    z-index: 1;
}

/* النقطة الحمراء */
.nav-badge-dot {
    position: absolute;
    top: 0;
    right: 18px;
    width: 9px;
    height: 9px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* ===== تصميم الإشعارات الحديثة (Toast Notifications) ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast-container.show-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.toast {
    min-width: 320px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-right: 6px solid transparent;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    text-align: right;
}

.toast-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #2D3436;
}

.toast-message {
    font-size: 0.9rem;
    color: #636E72;
    line-height: 1.5;
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #636E72;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-right: 10px;
    flex-shrink: 0;
    border: none;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2D3436;
}

/* أنماط النجاح (أخضر) */
.toast.success {
    border-right-color: #00b894;
}
.toast.success .toast-icon {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}

/* أنماط الخطأ (أحمر) */
.toast.error {
    border-right-color: #d63031;
}
.toast.error .toast-icon {
    background: rgba(214, 48, 49, 0.1);
    color: #d63031;
}

/* أنماط المعلومات (أزرق) */
.toast.info {
    border-right-color: #0984e3;
}
.toast.info .toast-icon {
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
}

/* أنماط التحذير (برتقالي) */
.toast.warning {
    border-right-color: #f39c12;
}
.toast.warning .toast-icon {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* تحسين للجوال */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        left: 16px;
        right: 16px;
        transform: translateY(-20px);
        width: auto;
    }
    .toast-container.show-toast {
        transform: translateY(0);
    }
    .toast {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
    }
    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}