/**
 * Notification center — minimal flat UI
 * Scoped under .nc-root; overrides header .dropdown-menu pink via specificity.
 */
.nc-root {
    --nc-text: #1a1a1a;
    --nc-muted: #6b7280;
    --nc-line: #f0f0f0;
    --nc-brand: #e71068;
    --nc-panel: #ffffff;
}

/* Bell */
.nc-bell-wrap {
    position: relative;
    display: inline-block;
}

.nc-bell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.15s;
}

.nc-bell-btn:hover,
.nc-bell-btn:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nc-bell-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.nc-profile-wrap {
    line-height: 0;
}

.nc-badge {
    position: absolute;
    top: -3px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    color: var(--nc-brand);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.nc-profile-badge {
    top: -2px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    font-size: 9px;
    line-height: 14px;
}

/* Panel */
#header .nc-root .nc-dropdown.dropdown-menu,
.nc-dropdown.dropdown-menu {
    direction: rtl;
    width: min(360px, calc(100vw - 20px));
    max-height: min(440px, calc(100vh - 90px));
    padding: 0 !important;
    margin-top: 8px;
    border: 1px solid var(--nc-line) !important;
    border-radius: 12px !important;
    background: var(--nc-panel) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    z-index: 1055;
}

.nc-dropdown.dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.nc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--nc-line);
    background: var(--nc-panel);
}

.nc-header-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--nc-text);
}

.nc-mark-all {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--nc-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.nc-mark-all:hover {
    color: var(--nc-brand);
}

.nc-feed {
    flex: 1 1 auto;
    overflow-y: auto;
    background: var(--nc-panel);
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.nc-feed::-webkit-scrollbar {
    width: 4px;
}

.nc-feed::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Rows */
.nc-item {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    padding: 12px 14px;
    border-bottom: 1px solid var(--nc-line);
    background: var(--nc-panel);
    transition: background 0.12s;
    cursor: pointer;
}

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

.nc-item:hover {
    background: #fafafa;
}

.nc-item.unread {
    background: #fcfcfc;
}

.nc-item-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.nc-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    background: #f5f5f5;
    color: var(--nc-muted);
}

.nc-item--success .nc-item-icon { color: #059669; background: #f0fdf4; }
.nc-item--warning .nc-item-icon { color: #d97706; background: #fffbeb; }
.nc-item--danger .nc-item-icon  { color: #dc2626; background: #fef2f2; }

.nc-item-body {
    flex: 1;
    min-width: 0;
}

.nc-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.nc-item-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    color: var(--nc-text);
}

.nc-item-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nc-brand);
}

.nc-item-msg {
    font-size: 12px;
    line-height: 1.5;
    color: var(--nc-muted);
}

.nc-item-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--nc-brand) !important;
    text-decoration: none !important;
}

.nc-item-link:hover {
    text-decoration: underline !important;
}

.nc-item-time {
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
}

.nc-item:not([href]) {
    cursor: default;
}

.nc-empty,
.nc-loading {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--nc-muted);
}

.nc-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
    opacity: 0.35;
}

.nc-footer {
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid var(--nc-line);
    background: var(--nc-panel);
}

.nc-footer a {
    font-size: 12px;
    font-weight: 500;
    color: var(--nc-muted) !important;
    text-decoration: none !important;
}

.nc-footer a:hover {
    color: var(--nc-brand) !important;
}

/* Full page */
.nc-page {
    direction: rtl;
    padding-bottom: 2rem;
}

.nc-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}

.nc-page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--nc-text);
}

.nc-page-sub {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--nc-muted);
}

.nc-page-panel {
    border-radius: 12px;
    border: 1px solid var(--nc-line);
    background: var(--nc-panel);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.nc-page-item {
    border-bottom: 1px solid var(--nc-line);
}

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

.nc-btn-soft {
    border: 1px solid var(--nc-line);
    background: #fff;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.nc-btn-soft:hover {
    border-color: var(--nc-brand);
    color: var(--nc-brand);
}

@media (max-width: 576px) {
    #header .nc-root .nc-dropdown.dropdown-menu,
    .nc-dropdown.dropdown-menu {
        width: calc(100vw - 16px);
        right: 8px !important;
        left: auto !important;
    }
}
