/* =========================================================================
   Notifications — dark theme (notif- prefix)
   Matches order-management.css palette: bg #0F1412 / surface #1A1D1C,
   accent #2DD4BF (teal), text #fff/#D1D5DB, muted #9CA3AF/#6B7280.
   Covers the top-nav bell + dropdown and the full /notifications page.
   ========================================================================= */

/* ---- Bell host (replaces the static .nav-icon in the top-nav) ---- */
.notification-bell-host { position: relative; }

.notif-bell-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.1);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.notif-bell-btn:hover {
    background: rgba(45, 212, 191, 0.2);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.2);
}
.notif-bell-btn i { color: #2DD4BF; font-size: 18px; }

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1A1D1C;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ---- Dropdown panel ---- */
.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 600px;
    background: linear-gradient(135deg, rgba(26, 29, 28, 0.98) 0%, rgba(20, 23, 22, 0.98) 100%);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.notif-panel-head {
    padding: 16px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-panel-head h3 { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0; }
.notif-link {
    background: transparent;
    border: none;
    color: #2DD4BF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.notif-link:hover { background: rgba(45, 212, 191, 0.1); }

.notif-filters { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid rgba(45, 212, 191, 0.1); }
.notif-filter-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.notif-filter-btn:hover { color: #D1D5DB; border-color: rgba(45, 212, 191, 0.3); }
.notif-filter-btn.active { background: rgba(45, 212, 191, 0.15); border-color: rgba(45, 212, 191, 0.4); color: #2DD4BF; }

.notif-list { max-height: 440px; overflow-y: auto; }
.notif-list::-webkit-scrollbar { width: 6px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(45, 212, 191, 0.3); border-radius: 3px; }

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}
.notif-item:hover { background: rgba(45, 212, 191, 0.05); }
.notif-item.unread { background: rgba(45, 212, 191, 0.04); }
.notif-item-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
    color: #FFFFFF; font-size: 13px; font-weight: 600;
    margin: 0 0 4px 0; line-height: 1.4;
    display: flex; align-items: center; gap: 6px;
}
.notif-item-msg { color: #9CA3AF; font-size: 12px; margin: 0 0 6px 0; line-height: 1.5; }
.notif-item-time { color: #6B7280; font-size: 11px; }

.notif-dot { width: 8px; height: 8px; background: #2DD4BF; border-radius: 50%; flex-shrink: 0; }

.notif-empty { padding: 40px 20px; text-align: center; color: #6B7280; }
.notif-empty i { font-size: 40px; margin-bottom: 10px; display: block; }
.notif-empty p { font-size: 13px; margin: 0; }

.notif-loadmore {
    padding: 12px; text-align: center; cursor: pointer;
    color: #2DD4BF; font-size: 12px; font-weight: 600;
    border-top: 1px solid rgba(45, 212, 191, 0.1);
}
.notif-loadmore:hover { background: rgba(45, 212, 191, 0.05); }

.notif-panel-foot { padding: 10px 16px; border-top: 1px solid rgba(45, 212, 191, 0.15); text-align: center; }

/* =========================================================================
   Full /notifications page
   ========================================================================= */
.notif-page { padding: 24px; max-width: 960px; margin: 0 auto; }
.notif-page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.notif-page-head h1 { color: #FFFFFF; font-size: 24px; font-weight: 700; margin: 0; }

.notif-btn {
    background: #2DD4BF; color: #0F1412; border: none;
    padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.notif-btn:hover { background: #2bc1ad; }
.notif-btn.ghost { background: transparent; color: #2DD4BF; border: 1px solid rgba(45, 212, 191, 0.3); }
.notif-btn.ghost:hover { background: rgba(45, 212, 191, 0.1); }

.notif-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.notif-tabs { display: flex; gap: 8px; }
.notif-tab {
    background: #1A1D1C; border: 1px solid rgba(107, 114, 128, 0.2);
    color: #9CA3AF; font-size: 13px; font-weight: 600;
    padding: 8px 16px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.notif-tab:hover { color: #D1D5DB; border-color: rgba(45, 212, 191, 0.3); }
.notif-tab.active { background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.4); color: #2DD4BF; }

.notif-select {
    background: #1A1D1C; color: #D1D5DB; border: 1px solid rgba(45, 212, 191, 0.2);
    padding: 8px 12px; border-radius: 10px; font-size: 13px; cursor: pointer;
    outline: none;
}
.notif-select option { background: #1A1D1C; }

.notif-list { display: flex; flex-direction: column; gap: 10px; }

.notif-row {
    display: flex; gap: 14px; align-items: flex-start;
    background: #1A1D1C; border: 1px solid rgba(45, 212, 191, 0.08);
    border-radius: 12px; padding: 14px 16px; transition: all 0.2s;
}
.notif-row:hover { border-color: rgba(45, 212, 191, 0.2); }
.notif-row.unread { border-color: rgba(45, 212, 191, 0.25); background: rgba(45, 212, 191, 0.04); }

.notif-row-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px;
}
.notif-row-body { flex: 1; min-width: 0; cursor: pointer; }
.notif-row-title {
    color: #FFFFFF; font-size: 14px; font-weight: 600; margin: 0 0 4px 0;
    display: flex; align-items: center; gap: 8px;
}
.notif-row-msg { color: #9CA3AF; font-size: 13px; margin: 0 0 6px 0; line-height: 1.5; }
.notif-row-meta { display: flex; gap: 12px; font-size: 11px; color: #6B7280; }
.notif-row-cat { text-transform: capitalize; }

.notif-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.notif-act {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.04); border: none;
    color: #9CA3AF; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.notif-act:hover { background: rgba(45, 212, 191, 0.15); color: #2DD4BF; }
.notif-act.danger:hover { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.notif-page-empty { padding: 60px 20px; text-align: center; color: #6B7280; }
.notif-page-empty i { font-size: 44px; margin-bottom: 12px; display: block; }
.notif-page-empty p { font-size: 14px; margin: 0; }

.notif-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding: 12px 4px;
}
.notif-pages { color: #6B7280; font-size: 12px; }

/* ---- Preferences ---- */
.notif-prefs {
    margin-top: 28px; padding: 20px;
    background: #1A1D1C; border: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: 14px;
}
.notif-prefs h2 { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0 0 16px 0; }
.notif-prefs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.notif-pref {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: #0F1412; border-radius: 10px;
    cursor: pointer; font-size: 13px; color: #D1D5DB;
}
.notif-pref input { width: 16px; height: 16px; accent-color: #2DD4BF; cursor: pointer; }
.notif-prefs-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.notif-prefs-msg { color: #2DD4BF; font-size: 12px; font-weight: 600; }
.notif-prefs-loading { color: #6B7280; font-size: 13px; }

/* =========================================================================
   Notification details modal (read-only)
   ========================================================================= */
.notif-detail { padding: 4px 6px 8px; }
.notif-detail-hero {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(45, 212, 191, 0.08);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 24px;
}
.notif-detail-message {
    color: #D1D5DB; font-size: 14px; line-height: 1.6;
    margin: 0 0 18px; text-align: center; white-space: pre-wrap; word-break: break-word;
}
.notif-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.notif-detail-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #0F1412; border: 1px solid rgba(107, 114, 128, 0.25);
    color: #9CA3AF; font-size: 11px; font-weight: 600;
    padding: 5px 10px; border-radius: 999px; text-transform: capitalize;
}
.notif-detail-chip i { font-size: 10px; color: #6B7280; }
.notif-detail-chip.unread { border-color: rgba(45, 212, 191, 0.4); color: #2DD4BF; }
.notif-detail-chip.unread i { color: #2DD4BF; }
.notif-detail-chip.read i { color: #6B7280; }

@media (max-width: 768px) {
    .notif-panel { width: calc(100vw - 32px); right: -8px; }
    .notif-page { padding: 16px; }
    .notif-tabs { flex-wrap: wrap; }
}