/*
 * Notification center (topbar bell + dropdown panel).
 *
 * Tailwind is NOT JIT-compiled on shared hosting, so the component's original
 * raw utility classes (relative/absolute/w-96/z-50/shadow-xl ...) resolved to
 * nothing: the panel was never taken out of flow and its "Notifications"
 * heading and empty state rendered inline, squashed against the user avatar
 * in the topbar. These hand-written .lh-notif-* rules ship prebuilt and need
 * no build step.
 */

.lh-notif { position: relative; }

.lh-notif-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    color: #6b7280;
    background: none;
    border: 0;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.lh-notif-trigger:hover { background: #f3f4f6; color: #374151; }

.lh-notif-badge {
    position: absolute;
    top: -.125rem;
    right: -.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.125rem;
    padding: 0 .25rem;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #ef4444;
    border-radius: 9999px;
}

.lh-notif-panel {
    position: absolute;
    right: 0;
    top: 3rem;
    z-index: 50;
    width: 24rem;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.lh-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.lh-notif-title { font-size: .875rem; font-weight: 600; color: #111827; margin: 0; }
.lh-notif-head-actions { display: flex; align-items: center; gap: .5rem; }

.lh-notif-link {
    font-size: .75rem;
    color: #4f46e5;
    background: none;
    border: 0;
    cursor: pointer;
}
.lh-notif-link:hover { text-decoration: underline; }

.lh-notif-close {
    display: flex;
    align-items: center;
    color: #9ca3af;
    background: none;
    border: 0;
    cursor: pointer;
}
.lh-notif-close:hover { color: #4b5563; }

.lh-notif-list { max-height: 24rem; overflow-y: auto; }

.lh-notif-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1rem;
    border-top: 1px solid #f9fafb;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s;
}
.lh-notif-list > .lh-notif-item:first-child { border-top: 0; }
.lh-notif-item:hover { background: #f9fafb; }
.lh-notif-item.is-unread { background: rgba(238, 242, 255, .6); }
.lh-notif-item.is-clickable { cursor: pointer; }

.lh-notif-item-icon { flex-shrink: 0; margin-top: .125rem; }
.lh-notif-item-body { flex: 1; min-width: 0; }
.lh-notif-msg { font-size: .875rem; color: #1f2937; line-height: 1.375; margin: 0; }
.lh-notif-time { font-size: .75rem; color: #9ca3af; margin: .125rem 0 0; }

.lh-notif-dismiss-wrap { display: flex; align-items: center; gap: .25rem; opacity: 0; transition: opacity .15s; }
.lh-notif-item:hover .lh-notif-dismiss-wrap { opacity: 1; }
.lh-notif-dismiss { display: flex; color: #9ca3af; background: none; border: 0; cursor: pointer; }
.lh-notif-dismiss:hover { color: #ef4444; }

.lh-notif-empty { padding: 2rem 1rem; text-align: center; font-size: .875rem; color: #9ca3af; }

.lh-notif-foot { padding: .75rem 1rem; border-top: 1px solid #f3f4f6; }
.lh-notif-foot .lh-notif-link { display: block; width: 100%; text-align: center; }

/* Icon colour helpers (replaces text-danger-500 / text-success-500 / text-primary-500). */
.lh-notif-ico-danger  { color: #ef4444; }
.lh-notif-ico-success { color: #10b981; }
.lh-notif-ico-primary { color: #6366f1; }

/* ── Dark mode (Filament puts .dark on <html>) ───────────────────────── */
.dark .lh-notif-trigger { color: #9ca3af; }
.dark .lh-notif-trigger:hover { background: rgba(255, 255, 255, .1); color: #e5e7eb; }
.dark .lh-notif-panel { background: #111827; border-color: #374151; }
.dark .lh-notif-head, .dark .lh-notif-foot { border-color: #374151; }
.dark .lh-notif-title { color: #f9fafb; }
.dark .lh-notif-item { border-color: #1f2937; }
.dark .lh-notif-item:hover { background: rgba(255, 255, 255, .05); }
.dark .lh-notif-item.is-unread { background: rgba(79, 70, 229, .12); }
.dark .lh-notif-msg { color: #e5e7eb; }
.dark .lh-notif-time, .dark .lh-notif-empty { color: #6b7280; }
.dark .lh-notif-close:hover { color: #e5e7eb; }
