.notif-page {
    padding: 0 4px;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

/* ── Header ─────────────────────────────────────── */
.notif-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.notif-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(14, 165, 233, .35);
    flex-shrink: 0;
}

.notif-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.notif-brand-sub {
    font-size: 12px;
    color: #64748b;
}

/* ── Toolbar ─────────────────────────────────────── */
.notif-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/*.notif-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
  
}

.notif-search-box:focus-within {
    border-color: #0ea5e9;
}

.notif-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #0f172a;
    width: 200px;
    font-family: inherit;
}

.notif-search-icon {
    color: #94a3b8;
    font-size: 14px;
}*/
.notif-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    height: 38px;
}

    .notif-search-box input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        color: #0f172a;
        flex: 1; /* 🔥 IMPORTANT: fills space properly */
    }

/* NEW */
.notif-btn-searchs {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    padding: 4px;
}

    .notif-btn-searchs:hover {
        color: #0ea5e9;
    }

.notif-date-input-wrapper {
    width: 140px;
}

.notif-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
   /* border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;*/
    height: 38px;
    transition: border-color .2s;
}

.notif-date-range:focus-within {
    border-color: #0ea5e9;
}

.notif-date-sep {
    color: #94a3b8;
    font-size: 13px;
}

.notif-btn-search {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(14, 165, 233, .4);
    transition: transform .15s;
}

.notif-btn-search:active {
    transform: scale(.93);
}

/* ── Filter Chips ────────────────────────────────── */
.notif-filter-bar {
    display: flex;
    gap: 6px;
    padding: 10px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.notif-chip {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid transparent;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.notif-chip:hover {
    border-color: #e2e8f0;
    color: #0f172a;
}

.notif-chip-all       { background: #e0f2fe; color: #0284c7; border-color: #0ea5e9 !important; }
.notif-chip-initiated { background: #e0f2fe; color: #0ea5e9; border-color: #0ea5e9 !important; }
.notif-chip-draft     { background: #fef3c7; color: #f59e0b; border-color: #f59e0b !important; }
.notif-chip-pending   { background: #ede9fe; color: #8b5cf6; border-color: #8b5cf6 !important; }
.notif-chip-warning   { background: #fee2e2; color: #ef4444; border-color: #ef4444 !important; }
.notif-chip-error     { background: #ffedd5; color: #f97316; border-color: #f97316 !important; }

/* ── Date Group ──────────────────────────────────── */
.notif-date-group {
    margin-bottom: 12px;
    animation: notifSlideUp .4s ease both;
}

@keyframes notifSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notif-date-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 12px;
    background: #e0f2fe;
    border-radius: 6px;
    white-space: nowrap;
}

.notif-date-count {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.notif-date-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Notification Item ───────────────────────────── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 8px;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s, transform .15s;
    animation: notifFadeIn .35s ease both;
}

@keyframes notifFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.notif-item:hover {
    box-shadow: 0 4px 18px rgba(14, 165, 233, .12);
    transform: translateX(3px);
}

.notif-item-initiated:hover { border-color: rgba(14,  165, 233, .33); }
.notif-item-draft:hover     { border-color: rgba(245, 158,  11, .33); }
.notif-item-pending:hover   { border-color: rgba(139,  92, 246, .33); }
.notif-item-warning:hover   { border-color: rgba(239,  68,  68, .33); }
.notif-item-error:hover     { border-color: rgba(249, 115,  22, .33); }

/* ── Dot ─────────────────────────────────────────── */
.notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.notif-dot-initiated { background: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,  165, 233, .2); }
.notif-dot-draft     { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158,  11, .2); }
.notif-dot-pending   { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,  92, 246, .2); }
.notif-dot-warning   { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,  68,  68, .2); }
.notif-dot-error     { background: #f97316; box-shadow: 0 0 0 3px rgba(249, 115,  22, .2); }

/* ── Text ────────────────────────────────────────── */
.notif-text {
    flex: 1;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.55;
}

/* ── Badge ───────────────────────────────────────── */
.notif-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 1px;
    white-space: nowrap;
}

.notif-badge-initiated { color: #0ea5e9; background: #e0f2fe; }
.notif-badge-draft     { color: #f59e0b; background: #fef3c7; }
.notif-badge-pending   { color: #8b5cf6; background: #ede9fe; }
.notif-badge-warning   { color: #ef4444; background: #fee2e2; }
.notif-badge-error     { color: #f97316; background: #ffedd5; }

/* ── Empty State ─────────────────────────────────── */
.notif-empty-state {
    text-align: center;
    padding: 60px 0;
    color: #94a3b8;
}

.notif-empty-icon {
    font-size: 52px;
    margin-bottom: 14px;
}

.notif-empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.notif-empty-state p {
    font-size: 13px;
    margin-top: 4px;
}
