﻿/* ==================================================
   NOTIFICATIONS DROPDOWN
   ================================================== */

/* ---------- Wrapper (دکمه + dropdown) ---------- */
.custom-education-theme-notif {
    position: relative;
}

/* ---------- Trigger Button (دکمه‌ی زنگ) ---------- */
.custom-education-theme-notif-trigger {
    /* از استایل‌های action-btn ارث می‌بره */
    position: relative;
}

    .custom-education-theme-notif-trigger.custom-education-theme-active {
        background: var(--accent-gradient);
        color: #fff;
        border-color: transparent;
    }

        .custom-education-theme-notif-trigger.custom-education-theme-active i {
            color: #fff;
        }

/* ---------- Dropdown Panel ---------- */
.custom-education-theme-notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--megamenu-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px var(--accent-dark-glow-25), 0 0 40px var(--accent-glow-12);
    overflow: hidden;
    z-index: 1100;
    /* مخفی به‌صورت پیش‌فرض */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

[dir="rtl"] .custom-education-theme-notif-panel {
    right: auto;
    left: 0;
    transform-origin: top left;
}

[data-theme="dark"] .custom-education-theme-notif-panel {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px var(--accent-glow-25);
}

/* حالت باز */
.custom-education-theme-notif.custom-education-theme-open .custom-education-theme-notif-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ---------- Header ---------- */
.custom-education-theme-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

    .custom-education-theme-notif-header h4 {
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

        .custom-education-theme-notif-header h4 i {
            color: var(--accent);
        }

.custom-education-theme-notif-mark-all {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .custom-education-theme-notif-mark-all:hover {
        background: var(--accent-glow-10);
    }

/* ---------- List ---------- */
.custom-education-theme-notif-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
}

    /* اسکرول‌بار نازک */
    .custom-education-theme-notif-list::-webkit-scrollbar {
        width: 6px;
    }

    .custom-education-theme-notif-list::-webkit-scrollbar-thumb {
        background: var(--glass-border);
        border-radius: 10px;
    }

/* ---------- Item ---------- */
.custom-education-theme-notif-item {
    display: flex;
    gap: 12px;
    margin: 2px 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

    .custom-education-theme-notif-item:hover {
        background: var(--accent-glow-08);
    }

    /* حالت نخوانده */
    .custom-education-theme-notif-item.custom-education-theme-unread {
        background: var(--accent-glow-05);
    }

        .custom-education-theme-notif-item.custom-education-theme-unread::before {
            content: '';
            position: absolute;
            top: 18px;
            right: 8px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 12px var(--accent);
            animation: customEducationThemeNotifDot 2s ease-in-out infinite;
        }

[dir="rtl"] .custom-education-theme-notif-item.custom-education-theme-unread::before {
    right: auto;
    left: 8px;
}

@keyframes customEducationThemeNotifDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ---------- Icon ---------- */
.custom-education-theme-notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #fff;
    transition: var(--transition);
}

.custom-education-theme-notif-item:hover .custom-education-theme-notif-icon {
    transform: scale(1.1);
}

/* رنگ آیکون‌ها بر اساس نوع */
.custom-education-theme-notif-icon.custom-education-theme-notif-success {
    background: linear-gradient(135deg, #00b894, #55efc4);
    box-shadow: 0 6px 18px rgba(0, 184, 148, 0.35);
}

.custom-education-theme-notif-icon.custom-education-theme-notif-warning {
    background: linear-gradient(135deg, #fdcb6e, #f0932b);
    box-shadow: 0 6px 18px rgba(253, 203, 110, 0.35);
}

.custom-education-theme-notif-icon.custom-education-theme-notif-info {
    background: linear-gradient(135deg, #4a9eff, #74b9ff);
    box-shadow: 0 6px 18px rgba(74, 158, 255, 0.35);
}

.custom-education-theme-notif-icon.custom-education-theme-notif-accent {
    background: var(--accent-gradient);
    box-shadow: 0 6px 18px var(--accent-glow-40);
}

.custom-education-theme-notif-icon.custom-education-theme-notif-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
}

/* ---------- Body ---------- */
.custom-education-theme-notif-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-left: 8px;
}

[dir="rtl"] .custom-education-theme-notif-body {
    padding-left: 0;
    padding-right: 8px;
}

.custom-education-theme-notif-title {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

.custom-education-theme-notif-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-education-theme-notif-time {
    font-size: 0.72rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-weight: 600;
}

    .custom-education-theme-notif-time i {
        font-size: 0.65rem;
    }

/* ---------- Empty State ---------- */
.custom-education-theme-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

    .custom-education-theme-notif-empty i {
        font-size: 2.4rem;
        color: var(--accent);
        opacity: 0.4;
    }

    .custom-education-theme-notif-empty p {
        font-size: 0.85rem;
        margin: 0;
    }

/* ---------- Footer (مشاهده بیشتر) ---------- */
.custom-education-theme-notif-footer {
    padding: 12px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.custom-education-theme-notif-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--accent-glow-30);
}

    .custom-education-theme-notif-view-all:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px var(--accent-glow-50);
    }

    .custom-education-theme-notif-view-all i {
        font-size: 0.85rem;
        transition: transform 0.3s ease;
    }

    .custom-education-theme-notif-view-all:hover i {
        transform: translateX(-4px);
    }

[dir="rtl"] .custom-education-theme-notif-view-all:hover i {
    transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .custom-education-theme-notif-panel {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        transform-origin: top center;
    }

    [dir="rtl"] .custom-education-theme-notif-panel {
        right: 12px;
        left: 12px;
    }

    .custom-education-theme-notif-list {
        max-height: 60vh;
    }
}
