/* =========================================================
   SATHI FOODS NOTIFICATION CENTER — UI + REALTIME DROPDOWN
========================================================= */

.notification-center {
    position: relative !important;
    z-index: 9200;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-trigger {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    width: auto;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid #dce3ef !important;
    border-radius: 14px !important;
    outline: 0 !important;
    background: #ffffff !important;
    color: #3147a5 !important;
    box-shadow: 0 8px 22px rgba(31, 49, 104, 0.08) !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.notification-center.is-compact .notification-trigger {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border-radius: 14px !important;
}

.notification-trigger:hover,
.notification-trigger:focus-visible,
.notification-trigger[aria-expanded="true"] {
    border-color: #3147a5 !important;
    background: #eef2ff !important;
    color: #263d9b !important;
    box-shadow: 0 10px 25px rgba(49, 71, 165, 0.16) !important;
    transform: translateY(-1px);
}

.notification-trigger:focus-visible {
    box-shadow: 0 0 0 4px rgba(49, 71, 165, 0.14), 0 10px 25px rgba(49, 71, 165, 0.16) !important;
}

.notification-trigger svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    display: block !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    color: inherit !important;
    pointer-events: none;
}

.notification-trigger-label {
    display: inline-block;
    color: inherit;
    line-height: 1;
    pointer-events: none;
}

.notification-count {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    z-index: 2;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    background: #f04414 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(240, 68, 20, 0.28);
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.notification-count.is-hidden {
    display: none !important;
}

.premium-panel-topbar,
.topbar-actions,
.notification-center {
    overflow: visible !important;
}

.notification-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 99999 !important;
    width: min(390px, calc(100vw - 30px)) !important;
    max-width: 390px !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, 0.11) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.985);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.notification-dropdown[hidden] {
    display: none !important;
}

.notification-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notification-dropdown-head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #f3f6ff, #ffffff);
}

.notification-dropdown-head strong,
.notification-dropdown-head span {
    display: block;
}

.notification-dropdown-head strong {
    color: #172033;
    font-size: 16px;
    font-weight: 900;
}

.notification-dropdown-head span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.notification-dropdown-head button {
    -webkit-appearance: none;
    appearance: none;
    min-height: 34px;
    padding: 8px 11px;
    border: 0;
    border-radius: 10px;
    background: #eef2ff;
    color: #3147a5;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.notification-dropdown-head button:hover {
    background: #3147a5;
    color: #ffffff;
}

.notification-dropdown-list {
    max-height: 390px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-preview-item {
    padding: 13px 16px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.notification-preview-item:hover {
    background: #f8fafc;
}

.notification-preview-item.is-unread {
    background: #f7f8ff;
    box-shadow: inset 3px 0 0 #3147a5;
}

.notification-preview-icon,
.notification-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #3149ad;
    font-weight: 900;
}

.notification-preview-icon {
    width: 38px;
    height: 38px;
}

.notification-preview-icon.type-order,
.notification-type-icon.type-order {
    background: #fff0e8;
    color: #e63f0b;
}

.notification-preview-icon.type-delivery,
.notification-type-icon.type-delivery {
    background: #ecfdf5;
    color: #059669;
}

.notification-preview-icon.type-payment,
.notification-type-icon.type-payment {
    background: #eff6ff;
    color: #2563eb;
}

.notification-preview-icon.type-warning,
.notification-type-icon.type-warning {
    background: #fff7ed;
    color: #d97706;
}

.notification-preview-copy {
    min-width: 0;
}

.notification-preview-copy strong,
.notification-preview-copy span,
.notification-preview-copy time {
    display: block;
}

.notification-preview-copy strong {
    margin-bottom: 3px;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
}

.notification-preview-copy span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-preview-copy time {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.notification-preview-empty {
    min-height: 160px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
}

.notification-preview-empty > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-weight: 900;
}

.notification-dropdown-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3147a5;
    background: #f8faff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.notification-dropdown-footer:hover {
    color: #ffffff;
    background: #3147a5;
}

@media (max-width: 900px) {
    .notification-trigger-label {
        display: none !important;
    }

    .notification-center,
    .notification-center.is-compact {
        min-width: 38px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .notification-trigger,
    .notification-center.is-compact .notification-trigger {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        border-radius: 11px !important;
    }

    .notification-trigger svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }

    .notification-dropdown {
        position: fixed !important;
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 90px);
        transform-origin: top center;
    }
}

@media (max-width: 520px) {
    .notification-center,
    .notification-center.is-compact,
    .notification-trigger,
    .notification-center.is-compact .notification-trigger {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    .notification-dropdown {
        top: 66px !important;
        left: 8px !important;
        right: 8px !important;
        border-radius: 16px !important;
    }
}
.notification-public-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 90px;
}

.notification-public-hero {
    margin-bottom: 24px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 28px;
    background: linear-gradient(135deg, #ff8b48, #f04414);
    color: #ffffff;
}

.notification-public-hero > span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.notification-public-hero h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(30px, 6vw, 48px);
}

.notification-public-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.notification-page-card {
    overflow: visible;
}

.notification-page-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.notification-page-eyebrow {
    color: #f04414;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.notification-page-head h2 {
    margin: 4px 0 5px;
    color: #172033;
}

.notification-page-head p {
    margin: 0;
    color: #64748b;
}

.notification-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.notification-filter-tabs {
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    border-radius: 13px;
    background: #f1f5f9;
}

.notification-filter-tabs a {
    min-height: 34px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.notification-filter-tabs a.active {
    background: #ffffff;
    color: #e63f0b;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
}

.notification-filter-tabs b {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f04414;
    color: #ffffff;
    font-size: 9px;
}

.notification-action-btn {
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 11px;
    background: #f04414;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.notification-action-btn.secondary {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #475569;
}

.notification-page-list {
    display: grid;
    gap: 10px;
}

.notification-page-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 17px;
    background: #ffffff;
}

.notification-page-item.is-unread {
    border-color: rgba(240, 68, 20, 0.2);
    background: #fff9f5;
    box-shadow: inset 4px 0 0 #f04414;
}

.notification-page-link {
    min-height: 92px;
    padding: 16px 58px 16px 17px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.notification-page-link:hover {
    background: rgba(248, 250, 252, 0.75);
}

.notification-type-icon {
    width: 46px;
    height: 46px;
    font-size: 17px;
}

.notification-page-content,
.notification-page-title-row,
.notification-page-message,
.notification-page-content time {
    display: block;
}

.notification-page-title-row {
    margin-bottom: 4px;
}

.notification-page-title-row strong {
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}

.notification-page-title-row i {
    margin-left: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f04414;
    color: #ffffff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.notification-page-message {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.notification-page-content time {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.notification-page-arrow {
    color: #cbd5e1;
    font-size: 28px;
}

.notification-delete-form {
    position: absolute;
    top: 50%;
    right: 13px;
    z-index: 2;
    transform: translateY(-50%);
}

.notification-delete-form button {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

.notification-delete-form button:hover {
    background: #fee2e2;
    color: #dc2626;
}

.notification-empty-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notification-empty-state > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 25px;
    font-weight: 900;
}

.notification-empty-state h3 {
    margin: 0 0 6px;
    color: #172033;
}

.notification-empty-state p {
    margin: 0;
    color: #64748b;
}


@media (max-width: 900px) {
    .notification-page-head {
        flex-direction: column;
    }

    .notification-page-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .notification-public-page {
        width: min(100% - 20px, 1180px);
        padding-top: 16px;
    }

    .notification-public-hero {
        border-radius: 20px;
    }

    .notification-page-card {
        padding: 14px !important;
    }

    .notification-page-actions,
    .notification-page-actions form,
    .notification-action-btn {
        width: 100%;
    }

    .notification-filter-tabs {
        width: 100%;
    }

    .notification-filter-tabs a {
        flex: 1;
        justify-content: center;
    }

    .notification-page-link {
        padding: 14px 45px 14px 13px;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .notification-type-icon {
        width: 40px;
        height: 40px;
    }

    .notification-page-arrow {
        display: none;
    }
}

/* FIX: notification bell invisible until hover */

.notification-toggle,
.notification-bell,
.notification-bell-btn,
.notification-center-toggle,
[data-notification-toggle] {
    color: #1e3a8a !important;
    background: #ffffff !important;
    border: 1px solid #dbe4f0 !important;
    opacity: 1 !important;
}

.notification-toggle svg,
.notification-bell svg,
.notification-bell-btn svg,
.notification-center-toggle svg,
[data-notification-toggle] svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;

    color: #1e3a8a !important;
    stroke: #1e3a8a !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-toggle svg path,
.notification-toggle svg circle,
.notification-toggle svg line,
.notification-bell svg path,
.notification-bell svg circle,
.notification-bell-btn svg path,
.notification-center-toggle svg path,
[data-notification-toggle] svg path {
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
}

.notification-toggle:hover,
.notification-bell:hover,
.notification-bell-btn:hover,
.notification-center-toggle:hover,
[data-notification-toggle]:hover {
    color: #ffffff !important;
    background: #334bb5 !important;
    border-color: #334bb5 !important;
}

.notification-toggle:hover svg,
.notification-bell:hover svg,
.notification-bell-btn:hover svg,
.notification-center-toggle:hover svg,
[data-notification-toggle]:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}