/* ════════════════════════════════════════════════
   LectureDigest — Notifications Styles
   ════════════════════════════════════════════════ */

.notif-wrapper {
    position: relative;
}

.notif-bell-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 7px 10px;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.notif-bell-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary, #f1f5f9);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ── Panel ── */
.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: #1e1e3a;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 8000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

.notif-panel-actions {
    display: flex;
    gap: 6px;
}

.notif-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #94a3b8);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.notif-action-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.notif-panel-body {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

/* ── Items ── */
.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.notif-item:hover {
    background: rgba(139, 92, 246, 0.06);
}

.notif-item.notif-read {
    opacity: 0.6;
}

.notif-item:not(.notif-read) {
    background: rgba(139, 92, 246, 0.04);
}

.notif-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    line-height: 1.3;
}

.notif-message {
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    margin-top: 2px;
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    margin-top: 4px;
}

/* ── Empty ── */
.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #94a3b8);
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .notif-panel {
        width: calc(100vw - 32px);
        right: -60px;
    }
}

/* ── Light mode ── */
.light-mode .notif-panel {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.light-mode .notif-item:not(.notif-read) {
    background: rgba(139, 92, 246, 0.03);
}

.light-mode .notif-bell-btn {
    border-color: rgba(0, 0, 0, 0.08);
}
