/* استایل اجباری برای فیکس کردن جایگاه سایدبار اعلان */
.sidebar-notif {
    position: fixed !important; /* حتماً باید fixed باشد */
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 350px !important; /* عرض ثابت */
    height: 100vh !important; /* تمام ارتفاع صفحه */
    background-color: #ffffff !important;
    z-index: 999999 !important; /* بالاترین اولویت نمایش روی تمام عناصر */
    overflow-y: auto !important;
    padding-top: 60px;
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    border-left: 1px solid #ddd;
    
    /* مخفی بودن پیش‌فرض با ترنسفورم */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* جلوگیری از نمایش به صورت بلوک در صفحه */
    display: block; 
}

/* وقتی کلاس active اضافه می‌شود (باز شدن منو) */
.sidebar-notif.active {
    transform: translateX(0) !important;
    right: 0 !important;
}

/* دکمه باز کردن (فلش یا آیکون ادیت) */
.open-notif-btn {
    position: fixed !important;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 50px;
    background-color: #f94e60;
    border-radius: 10px 0 0 10px;
    border: 1px solid white;
    border-right: none;
    cursor: pointer;
    color: white;
    z-index: 999990 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

.open-notif-btn i {
    font-size: 18px;
}

/* دکمه بستن (ضربدر) */
.close-notif-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background-color: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.3s;
}

.close-notif-btn:hover {
    background-color: #ff4d4d;
    color: white;
    transform: rotate(90deg);
}

/* ریسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .sidebar-notif {
        width: 85% !important; /* در موبایل کمی باریک‌تر از تمام صفحه */
    }
}