/* Filament panel CSS does not include Tailwind from Livewire views — use plain CSS. */
.pw-notif-drawer {
    --pw-notif-border: #e2e8f0;
    --pw-notif-muted: #64748b;
    --pw-notif-text: #0f172a;
    --pw-notif-surface: #f8fafc;
    --pw-notif-primary: #4f46e5;
    --pw-notif-unread-bg: #eef2ff;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--pw-notif-text);
}

.dark .pw-notif-drawer {
    --pw-notif-border: rgba(255, 255, 255, 0.1);
    --pw-notif-muted: #94a3b8;
    --pw-notif-text: #f1f5f9;
    --pw-notif-surface: rgba(255, 255, 255, 0.05);
    --pw-notif-unread-bg: rgba(79, 70, 229, 0.12);
}

.pw-notif-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--pw-notif-border);
    background: var(--pw-notif-surface);
}

.pw-notif-drawer__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pw-notif-text);
}

.pw-notif-drawer__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--pw-notif-muted);
}

.pw-notif-drawer__mark-all {
    flex-shrink: 0;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--pw-notif-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pw-notif-drawer__mark-all:hover {
    background: rgba(79, 70, 229, 0.08);
}

.pw-notif-drawer__mark-all:disabled {
    opacity: 0.55;
    cursor: wait;
}

.pw-notif-drawer__list {
    max-height: min(24rem, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pw-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--pw-notif-border);
    background: transparent;
    color: inherit;
    text-align: start;
    cursor: pointer;
    font: inherit;
}

a.pw-notif-item {
    text-decoration: none;
}

.pw-notif-item:last-child {
    border-bottom: 0;
}

.pw-notif-item:hover {
    background: var(--pw-notif-surface);
}

.pw-notif-item--unread {
    background: var(--pw-notif-unread-bg);
}

.pw-notif-item--unread:hover {
    background: #e0e7ff;
}

.dark .pw-notif-item--unread:hover {
    background: rgba(79, 70, 229, 0.18);
}

.pw-notif-item__icon {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.1rem;
    border-radius: 9999px;
}

.pw-notif-item__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.pw-notif-item__icon--attendance {
    background: #e0f2fe;
    color: #0369a1;
}

.pw-notif-item__icon--enrollment {
    background: #e0e7ff;
    color: #4338ca;
}

.pw-notif-item__icon--contract {
    background: #d1fae5;
    color: #047857;
}

.pw-notif-item__icon--finance {
    background: #fef3c7;
    color: #b45309;
}

.pw-notif-item__icon--default {
    background: #f1f5f9;
    color: #475569;
}

.dark .pw-notif-item__icon--attendance {
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
}

.dark .pw-notif-item__icon--enrollment {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.dark .pw-notif-item__icon--contract {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.dark .pw-notif-item__icon--finance {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.dark .pw-notif-item__icon--default {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.pw-notif-item__dot {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid #fff;
    border-radius: 9999px;
    background: var(--pw-notif-primary);
}

.dark .pw-notif-item__dot {
    border-color: #030712;
}

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

.pw-notif-item__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.pw-notif-item__title {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--pw-notif-text);
}

.pw-notif-item--unread .pw-notif-item__title {
    font-weight: 600;
}

.pw-notif-item__time {
    flex-shrink: 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--pw-notif-muted);
    font-variant-numeric: tabular-nums;
}

.pw-notif-item__body {
    display: -webkit-box;
    margin: 0.25rem 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--pw-notif-muted);
}

.pw-notif-item__chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
    width: 1rem;
    height: 1rem;
    margin-top: 0;
    color: #cbd5e1;
}

.pw-notif-item:hover .pw-notif-item__chevron {
    color: #94a3b8;
}

.dark .pw-notif-item__chevron {
    color: #475569;
}

.pw-notif-item__chevron svg {
    width: 1rem;
    height: 1rem;
}

.pw-notif-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.pw-notif-drawer__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #94a3b8;
}

.dark .pw-notif-drawer__empty-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

.pw-notif-drawer__empty-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.pw-notif-drawer__empty-title {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pw-notif-text);
}

.pw-notif-drawer__empty-hint {
    margin: 0.25rem 0 0;
    max-width: 14rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--pw-notif-muted);
}

.pw-notif-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--pw-notif-border);
    background: var(--pw-notif-surface);
    text-align: center;
    font-size: 0.6875rem;
    color: var(--pw-notif-muted);
}

.pw-notif-drawer__view-all {
    color: var(--pw-notif-primary, #4f46e5);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.pw-notif-drawer__view-all:hover {
    text-decoration: underline;
}

.pw-notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pw-notif-bell__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.pw-notif-bell__trigger:hover {
    background: rgba(100, 116, 139, 0.08);
    color: #334155;
}

.dark .pw-notif-bell__trigger {
    color: #94a3b8;
}

.dark .pw-notif-bell__trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.pw-notif-bell__trigger svg {
    width: 1.5rem;
    height: 1.5rem;
}

.pw-notif-bell__badge {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
}

.pw-notif-bell__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 50;
    width: min(24rem, calc(100vw - 1.5rem));
    border: 1px solid var(--pw-notif-border);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.dark .pw-notif-bell__panel {
    background: #0f172a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
