/* ─── Notification Bell (User App) ──────────────────────────────────────── */
.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile_nav__notif {
    display: flex;
    align-items: center;
}

.mobile_nav .notif-bell__btn {
    font-size: 1.15rem;
    padding: 0.25rem;
}

.notif-bell__btn {
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    color: #555;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    line-height: 1;
    position: relative;
}

.notif-bell__btn:hover {
    background: rgba(0,0,0,.07);
    color: #222;
}

.notif-bell__badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    transform: translate(30%, -25%);
}

/* ─── Notification Dropdown ──────────────────────────────────────────────── */
.notif-dropdown {
    width: 360px;
    max-width: 95vw;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    border: 1px solid #eee;
    overflow: hidden;
    font-size: 0.875rem;
}

.notif-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.notif-dropdown__head-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #222;
}

.notif-dropdown__mark-all {
    background: none;
    border: none;
    color: var(--bs-primary, #0d6efd);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
}

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

.notif-dropdown__list {
    max-height: 340px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s;
    position: relative;
    cursor: pointer;
}

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

.notif-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.notif-item--unread {
    background: #f0f7ff;
}

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

.notif-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: #555;
}

.notif-item--unread .notif-item__icon {
    background: #dbeeff;
    color: var(--bs-primary, #0d6efd);
}

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

.notif-item__label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #222;
    margin-bottom: 2px;
}

.notif-item__msg {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.35;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item__time {
    font-size: 0.72rem;
    color: #aaa;
}

.notif-item__dot {
    width: 8px;
    height: 8px;
    background: var(--bs-primary, #0d6efd);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.notif-dropdown__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
}

.notif-dropdown__empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.notif-dropdown__footer {
    border-top: 1px solid #f0f0f0;
    padding: 0.6rem 1rem;
    text-align: center;
    background: #fafafa;
}

.notif-dropdown__footer a {
    font-size: 0.82rem;
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.notif-dropdown__footer a:hover {
    text-decoration: underline;
}

/* ─── Notifications listing page ─────────────────────────────────────────── */
.notif-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.notif-page__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.notif-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.notif-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    position: relative;
}

.notif-row:last-child {
    border-bottom: none;
}

.notif-row:hover {
    background: #f8f9fa;
    color: inherit;
    text-decoration: none;
}

.notif-row--unread {
    background: #f0f7ff;
}

.notif-row--unread:hover {
    background: #e5f0ff;
}

.notif-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #555;
}

.notif-row--unread .notif-row__icon {
    background: #dbeeff;
    color: var(--bs-primary, #0d6efd);
}

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

.notif-row__label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #222;
    margin-bottom: 2px;
}

.notif-row__msg {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-row__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: #aaa;
}

.notif-row__dot {
    width: 8px;
    height: 8px;
    background: var(--bs-primary, #0d6efd);
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ─── Type icon colours ──────────────────────────────────────────────────── */
.notif-icon--booking-created   { background: #e8f5e9; color: #388e3c; }
.notif-icon--booking-accepted  { background: #e3f2fd; color: #1976d2; }
.notif-icon--booking-rejected  { background: #fce4ec; color: #c62828; }
.notif-icon--booking-cancelled { background: #fff3e0; color: #e65100; }
.notif-icon--booking-completed { background: #e8f5e9; color: #2e7d32; }
.notif-icon--review-requested  { background: #fff8e1; color: #f57f17; }
.notif-icon--invoice-created   { background: #f3e5f5; color: #7b1fa2; }
.notif-icon--invoice-paid      { background: #e0f2f1; color: #00695c; }
.notif-icon--payment-recorded  { background: #e8eaf6; color: #283593; }

@media (max-width: 480px) {
    .notif-dropdown { width: 100vw; max-width: 100vw; border-radius: 0 0 12px 12px; }
}

/* RTL adjustments */
[dir="rtl"] .notif-bell__badge {
    right: auto;
    left: 0;
    transform: translate(-30%, -25%);
}
