/* =========================================================
   WONDER APP - VENDOR NOTIFICATIONS
   File: vendor_app/assets/css/notifications.css
   Scope: Vendor Notification Module
   ========================================================= */

/* ---------------------------------------------------------
   1. MODULE VARIABLES
   --------------------------------------------------------- */

.notifications-page {
    --notifications-primary:
        var(--primary-color,
        var(--primary,
        var(--primary-600, #2563eb)));

    --notifications-primary-soft:
        var(--primary-color-light,
        rgba(37, 99, 235, 0.10));

    --notifications-text:
        var(--text-primary, #111827);

    --notifications-text-secondary:
        var(--text-secondary, #4b5563);

    --notifications-text-muted:
        var(--text-muted, #6b7280);

    --notifications-bg:
        var(--bg-color, #f6f7fb);

    --notifications-surface:
        var(--surface,
        var(--card-bg, #ffffff));

    --notifications-border:
        var(--border-color, #e5e7eb);

    --notifications-success:
        var(--success, #16a34a);

    --notifications-warning:
        var(--warning, #d97706);

    --notifications-danger:
        var(--danger, #dc2626);

    --notifications-info:
        var(--info, #0284c7);

    --notifications-purple:
        #7c3aed;

    --notifications-radius-sm:
        var(--radius-sm, 6px);

    --notifications-radius-md:
        var(--radius-md, 10px);

    --notifications-radius-lg:
        var(--radius-lg, 14px);

    --notifications-radius-xl:
        var(--radius-xl, 18px);

    --notifications-shadow-sm:
        var(--shadow-sm,
        0 1px 3px rgba(15, 23, 42, 0.08));

    --notifications-shadow-md:
        var(--shadow-md,
        0 6px 20px rgba(15, 23, 42, 0.08));

    --notifications-transition:
        var(--transition-normal, 180ms ease);

    box-sizing: border-box;
    width: 100%;
}

.notifications-page *,
.notifications-page *::before,
.notifications-page *::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   2. PAGE CONTAINER
   --------------------------------------------------------- */

.notifications-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.notifications-section {
    width: 100%;
    margin-bottom: 24px;
}


/* ---------------------------------------------------------
   3. PAGE HEADER
   --------------------------------------------------------- */

.notifications-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.notifications-header-content {
    min-width: 0;
}

.notifications-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.notifications-subtitle {
    margin: 7px 0 0;
    color: var(--notifications-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}


/* ---------------------------------------------------------
   4. HEADER ACTIONS
   --------------------------------------------------------- */

.notifications-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-md);
    background: var(--notifications-surface);
    color: var(--notifications-text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background var(--notifications-transition),
        border-color var(--notifications-transition),
        color var(--notifications-transition),
        box-shadow var(--notifications-transition),
        transform var(--notifications-transition);
}

.notifications-action:hover {
    border-color: var(--notifications-primary);
    color: var(--notifications-primary);
    background: var(--notifications-primary-soft);
}

.notifications-action:active {
    transform: translateY(1px);
}

.notifications-action--primary {
    border-color: var(--notifications-primary);
    background: var(--notifications-primary);
    color: #ffffff;
}

.notifications-action--primary:hover {
    border-color: var(--notifications-primary);
    background: var(--notifications-primary);
    color: #ffffff;
    filter: brightness(0.96);
}

.notifications-action--danger:hover {
    border-color: var(--notifications-danger);
    background: rgba(220, 38, 38, 0.08);
    color: var(--notifications-danger);
}


/* ---------------------------------------------------------
   5. SUMMARY / KPI CARDS
   --------------------------------------------------------- */

.notifications-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.notifications-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
    box-shadow: var(--notifications-shadow-sm);
}

.notifications-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
    font-size: 20px;
}

.notifications-stat-icon--success {
    background: rgba(22, 163, 74, 0.10);
    color: var(--notifications-success);
}

.notifications-stat-icon--warning {
    background: rgba(217, 119, 6, 0.10);
    color: var(--notifications-warning);
}

.notifications-stat-icon--danger {
    background: rgba(220, 38, 38, 0.10);
    color: var(--notifications-danger);
}

.notifications-stat-content {
    min-width: 0;
}

.notifications-stat-label {
    margin: 0 0 5px;
    color: var(--notifications-text-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.notifications-stat-value {
    margin: 0;
    color: var(--notifications-text);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.notifications-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
}

.notifications-stat-change--positive {
    color: var(--notifications-success);
}

.notifications-stat-change--negative {
    color: var(--notifications-danger);
}


/* ---------------------------------------------------------
   6. TOOLBAR
   --------------------------------------------------------- */

.notifications-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.notifications-toolbar-left,
.notifications-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.notifications-search {
    position: relative;
    min-width: 260px;
}

.notifications-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: var(--notifications-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.notifications-search-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px 10px 38px;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-md);
    outline: none;
    background: var(--notifications-surface);
    color: var(--notifications-text);
    font-size: 13px;
    transition:
        border-color var(--notifications-transition),
        box-shadow var(--notifications-transition);
}

.notifications-search-input::placeholder {
    color: var(--notifications-text-muted);
}

.notifications-search-input:focus {
    border-color: var(--notifications-primary);
    box-shadow: 0 0 0 3px var(--notifications-primary-soft);
}

.notifications-filter {
    min-height: 42px;
    padding: 9px 34px 9px 12px;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-md);
    outline: none;
    background-color: var(--notifications-surface);
    color: var(--notifications-text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.notifications-filter:focus {
    border-color: var(--notifications-primary);
    box-shadow: 0 0 0 3px var(--notifications-primary-soft);
}


/* ---------------------------------------------------------
   7. TABS
   --------------------------------------------------------- */

.notifications-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    border-bottom: 1px solid var(--notifications-border);
    scrollbar-width: thin;
}

.notifications-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    background: transparent;
    color: var(--notifications-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.notifications-tab::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
}

.notifications-tab:hover {
    color: var(--notifications-text);
}

.notifications-tab.is-active {
    color: var(--notifications-primary);
}

.notifications-tab.is-active::after {
    background: var(--notifications-primary);
}

.notifications-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
    font-size: 10px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   8. NOTIFICATION LIST
   --------------------------------------------------------- */

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

.notifications-list-container {
    overflow: hidden;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
}

.notifications-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 17px 18px;
    border-bottom: 1px solid var(--notifications-border);
    background: var(--notifications-surface);
    transition:
        background var(--notifications-transition),
        box-shadow var(--notifications-transition);
}

.notifications-item:last-child {
    border-bottom: 0;
}

.notifications-item:hover {
    background: rgba(37, 99, 235, 0.025);
}

.notifications-item.is-unread {
    background: var(--notifications-primary-soft);
}

.notifications-item.is-unread:hover {
    background: rgba(37, 99, 235, 0.13);
}

.notifications-item.is-unread::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: 3px;
    height: 34px;
    border-radius: 0 4px 4px 0;
    background: var(--notifications-primary);
}


/* ---------------------------------------------------------
   9. NOTIFICATION ICON
   --------------------------------------------------------- */

.notifications-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
    font-size: 18px;
}

.notifications-item-icon--success {
    background: rgba(22, 163, 74, 0.10);
    color: var(--notifications-success);
}

.notifications-item-icon--warning {
    background: rgba(217, 119, 6, 0.10);
    color: var(--notifications-warning);
}

.notifications-item-icon--danger {
    background: rgba(220, 38, 38, 0.10);
    color: var(--notifications-danger);
}

.notifications-item-icon--info {
    background: rgba(2, 132, 199, 0.10);
    color: var(--notifications-info);
}

.notifications-item-icon--purple {
    background: rgba(124, 58, 237, 0.10);
    color: var(--notifications-purple);
}


/* ---------------------------------------------------------
   10. NOTIFICATION CONTENT
   --------------------------------------------------------- */

.notifications-item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.notifications-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notifications-item-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
}

.notifications-item.is-unread .notifications-item-title {
    font-weight: 750;
}

.notifications-item-message {
    margin: 5px 0 0;
    color: var(--notifications-text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.notifications-item-time {
    flex: 0 0 auto;
    color: var(--notifications-text-muted);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.notifications-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 9px;
}

.notifications-item-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--notifications-text-muted);
    font-size: 11px;
}

.notifications-item-meta-icon {
    font-size: 12px;
}


/* ---------------------------------------------------------
   11. NOTIFICATION ACTIONS
   --------------------------------------------------------- */

.notifications-item-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.notifications-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--notifications-text-muted);
    cursor: pointer;
    transition:
        background var(--notifications-transition),
        color var(--notifications-transition),
        border-color var(--notifications-transition);
}

.notifications-item-action:hover {
    border-color: var(--notifications-border);
    background: var(--notifications-surface);
    color: var(--notifications-text);
}

.notifications-item-action--danger:hover {
    border-color: rgba(220, 38, 38, 0.20);
    background: rgba(220, 38, 38, 0.08);
    color: var(--notifications-danger);
}


/* ---------------------------------------------------------
   12. UNREAD DOT
   --------------------------------------------------------- */

.notifications-unread-dot {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--notifications-primary);
}


/* ---------------------------------------------------------
   13. BADGES
   --------------------------------------------------------- */

.notifications-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.notifications-badge--unread {
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
}

.notifications-badge--read {
    background: rgba(107, 114, 128, 0.10);
    color: var(--notifications-text-muted);
}

.notifications-badge--success {
    background: rgba(22, 163, 74, 0.10);
    color: var(--notifications-success);
}

.notifications-badge--warning {
    background: rgba(217, 119, 6, 0.10);
    color: var(--notifications-warning);
}

.notifications-badge--danger {
    background: rgba(220, 38, 38, 0.10);
    color: var(--notifications-danger);
}

.notifications-badge--info {
    background: rgba(2, 132, 199, 0.10);
    color: var(--notifications-info);
}


/* ---------------------------------------------------------
   14. NOTIFICATION DETAIL
   --------------------------------------------------------- */

.notification-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}

.notification-detail-main,
.notification-detail-sidebar {
    min-width: 0;
}

.notification-detail-card {
    overflow: hidden;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
    box-shadow: var(--notifications-shadow-sm);
}

.notification-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border-bottom: 1px solid var(--notifications-border);
}

.notification-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
    font-size: 21px;
}

.notification-detail-header-content {
    min-width: 0;
    flex: 1;
}

.notification-detail-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.notification-detail-date {
    margin-top: 5px;
    color: var(--notifications-text-muted);
    font-size: 12px;
}

.notification-detail-body {
    padding: 22px;
    color: var(--notifications-text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.notification-detail-body p {
    margin: 0 0 14px;
}

.notification-detail-body p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   15. DETAIL SIDEBAR
   --------------------------------------------------------- */

.notification-sidebar-card {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
}

.notification-sidebar-card:last-child {
    margin-bottom: 0;
}

.notification-sidebar-title {
    margin: 0;
    padding: 15px 17px;
    border-bottom: 1px solid var(--notifications-border);
    color: var(--notifications-text);
    font-size: 13px;
    font-weight: 700;
}

.notification-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-sidebar-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 17px;
    border-bottom: 1px solid var(--notifications-border);
}

.notification-sidebar-item:last-child {
    border-bottom: 0;
}

.notification-sidebar-label {
    color: var(--notifications-text-muted);
    font-size: 11px;
}

.notification-sidebar-value {
    color: var(--notifications-text);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}


/* ---------------------------------------------------------
   16. PREFERENCES
   --------------------------------------------------------- */

.notifications-preferences {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notifications-preference-group {
    overflow: hidden;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
}

.notifications-preference-header {
    padding: 17px 18px;
    border-bottom: 1px solid var(--notifications-border);
}

.notifications-preference-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 15px;
    font-weight: 700;
}

.notifications-preference-description {
    margin: 5px 0 0;
    color: var(--notifications-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.notifications-preference-list {
    display: flex;
    flex-direction: column;
}

.notifications-preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--notifications-border);
}

.notifications-preference-row:last-child {
    border-bottom: 0;
}

.notifications-preference-content {
    min-width: 0;
}

.notifications-preference-label {
    margin: 0;
    color: var(--notifications-text);
    font-size: 13px;
    font-weight: 600;
}

.notifications-preference-help {
    margin: 4px 0 0;
    color: var(--notifications-text-muted);
    font-size: 11px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   17. TOGGLE SWITCH
   --------------------------------------------------------- */

.notifications-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
}

.notifications-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.notifications-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: background var(--notifications-transition);
}

.notifications-toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
    transition: transform var(--notifications-transition);
}

.notifications-toggle input:checked + .notifications-toggle-track {
    background: var(--notifications-primary);
}

.notifications-toggle input:checked + .notifications-toggle-track::after {
    transform: translateX(20px);
}

.notifications-toggle input:focus-visible + .notifications-toggle-track {
    outline: 3px solid var(--notifications-primary-soft);
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   18. ANNOUNCEMENTS
   --------------------------------------------------------- */

.notifications-announcements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.notifications-announcement-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
    box-shadow: var(--notifications-shadow-sm);
    transition:
        border-color var(--notifications-transition),
        box-shadow var(--notifications-transition),
        transform var(--notifications-transition);
}

.notifications-announcement-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--notifications-shadow-md);
    transform: translateY(-1px);
}

.notifications-announcement-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    background: var(--notifications-bg);
}

.notifications-announcement-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.notifications-announcement-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.notifications-announcement-date {
    color: var(--notifications-text-muted);
    font-size: 11px;
}

.notifications-announcement-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.notifications-announcement-text {
    margin: 8px 0 0;
    color: var(--notifications-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.notifications-announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}


/* ---------------------------------------------------------
   19. HISTORY TABLE
   --------------------------------------------------------- */

.notifications-history {
    overflow: hidden;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
}

.notifications-history-scroll {
    width: 100%;
    overflow-x: auto;
}

.notifications-history-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.notifications-history-table th,
.notifications-history-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--notifications-border);
    text-align: left;
    vertical-align: middle;
}

.notifications-history-table th {
    background: rgba(15, 23, 42, 0.025);
    color: var(--notifications-text-muted);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.notifications-history-table td {
    color: var(--notifications-text-secondary);
    font-size: 12px;
}

.notifications-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.notifications-history-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.025);
}


/* ---------------------------------------------------------
   20. PAGINATION
   --------------------------------------------------------- */

.notifications-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.notifications-pagination-info {
    color: var(--notifications-text-muted);
    font-size: 12px;
}

.notifications-pagination-list {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notifications-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--notifications-border);
    border-radius: 8px;
    background: var(--notifications-surface);
    color: var(--notifications-text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--notifications-transition),
        border-color var(--notifications-transition),
        color var(--notifications-transition);
}

.notifications-pagination-button:hover {
    border-color: var(--notifications-primary);
    color: var(--notifications-primary);
}

.notifications-pagination-button.is-active {
    border-color: var(--notifications-primary);
    background: var(--notifications-primary);
    color: #ffffff;
}

.notifications-pagination-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   21. EMPTY STATE
   --------------------------------------------------------- */

.notifications-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 40px 20px;
    border: 1px dashed var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
    text-align: center;
}

.notifications-empty-content {
    max-width: 430px;
}

.notifications-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 15px;
    border-radius: 18px;
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
    font-size: 26px;
}

.notifications-empty-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 17px;
    font-weight: 700;
}

.notifications-empty-text {
    margin: 7px 0 0;
    color: var(--notifications-text-muted);
    font-size: 13px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   22. LOADING STATE
   --------------------------------------------------------- */

.notifications-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notifications-loading-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-md);
    background: var(--notifications-surface);
}

.notifications-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    background: #e5e7eb;
}

.notifications-skeleton::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent
        );
    transform: translateX(-100%);
    animation: notificationsSkeleton 1.4s infinite;
}

.notifications-skeleton--icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.notifications-skeleton--title {
    width: 45%;
    height: 14px;
}

.notifications-skeleton--text {
    width: 85%;
    height: 11px;
    margin-top: 9px;
}

.notifications-skeleton--small {
    width: 30%;
    height: 10px;
    margin-top: 8px;
}

@keyframes notificationsSkeleton {
    100% {
        transform: translateX(100%);
    }
}


/* ---------------------------------------------------------
   23. ERROR STATE
   --------------------------------------------------------- */

.notifications-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 30px;
    border: 1px solid rgba(220, 38, 38, 0.20);
    border-radius: var(--notifications-radius-lg);
    background: rgba(220, 38, 38, 0.035);
    text-align: center;
}

.notifications-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: rgba(220, 38, 38, 0.10);
    color: var(--notifications-danger);
    font-size: 22px;
}

.notifications-error-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 16px;
    font-weight: 700;
}

.notifications-error-text {
    margin: 6px 0 15px;
    color: var(--notifications-text-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   24. NOTIFICATION CENTER / DROPDOWN
   --------------------------------------------------------- */

.notifications-center {
    position: relative;
}

.notifications-center-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--notifications-text-secondary);
    cursor: pointer;
    transition:
        background var(--notifications-transition),
        color var(--notifications-transition);
}

.notifications-center-button:hover {
    background: var(--notifications-primary-soft);
    color: var(--notifications-primary);
}

.notifications-center-count {
    position: absolute;
    top: 2px;
    right: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid var(--notifications-surface);
    border-radius: 999px;
    background: var(--notifications-danger);
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 1000;
    display: none;
    width: min(390px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--notifications-border);
    border-radius: var(--notifications-radius-lg);
    background: var(--notifications-surface);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.15);
}

.notifications-dropdown.is-open {
    display: block;
}

.notifications-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--notifications-border);
}

.notifications-dropdown-title {
    margin: 0;
    color: var(--notifications-text);
    font-size: 14px;
    font-weight: 700;
}

.notifications-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.notifications-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--notifications-border);
    text-decoration: none;
    transition: background var(--notifications-transition);
}

.notifications-dropdown-item:hover {
    background: var(--notifications-primary-soft);
}

.notifications-dropdown-item:last-child {
    border-bottom: 0;
}

.notifications-dropdown-footer {
    padding: 12px 15px;
    border-top: 1px solid var(--notifications-border);
    text-align: center;
}


/* ---------------------------------------------------------
   25. ACCESSIBILITY / FOCUS
   --------------------------------------------------------- */

.notifications-page button:focus-visible,
.notifications-page a:focus-visible,
.notifications-page input:focus-visible,
.notifications-page select:focus-visible,
.notifications-page textarea:focus-visible {
    outline: 3px solid var(--notifications-primary-soft);
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   26. DARK MODE
   --------------------------------------------------------- */

html[data-theme="dark"] .notifications-page,
.theme-dark .notifications-page,
.dark-mode .notifications-page {
    --notifications-text: #f3f4f6;
    --notifications-text-secondary: #cbd5e1;
    --notifications-text-muted: #94a3b8;

    --notifications-bg: #0f172a;
    --notifications-surface: #111827;
    --notifications-border: #273244;

    --notifications-primary-soft:
        rgba(59, 130, 246, 0.14);

    --notifications-shadow-sm:
        0 1px 3px rgba(0, 0, 0, 0.25);

    --notifications-shadow-md:
        0 8px 24px rgba(0, 0, 0, 0.30);
}

html[data-theme="dark"] .notifications-item:hover,
.theme-dark .notifications-item:hover,
.dark-mode .notifications-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

html[data-theme="dark"] .notifications-history-table th,
.theme-dark .notifications-history-table th,
.dark-mode .notifications-history-table th {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .notifications-skeleton,
.theme-dark .notifications-skeleton,
.dark-mode .notifications-skeleton {
    background: #263244;
}

html[data-theme="dark"] .notifications-skeleton::after,
.theme-dark .notifications-skeleton::after,
.dark-mode .notifications-skeleton::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent
        );
}


/* ---------------------------------------------------------
   27. RESPONSIVE - LARGE TABLET
   --------------------------------------------------------- */

@media (max-width: 1200px) {

    .notifications-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-detail {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

}


/* ---------------------------------------------------------
   28. RESPONSIVE - TABLET
   --------------------------------------------------------- */

@media (max-width: 992px) {

    .notifications-container {
        padding: 20px;
    }

    .notifications-header {
        flex-direction: column;
        align-items: stretch;
    }

    .notifications-header-actions {
        justify-content: flex-start;
    }

    .notification-detail {
        grid-template-columns: 1fr;
    }

    .notification-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .notification-sidebar-card {
        margin-bottom: 0;
    }

    .notifications-announcements {
        grid-template-columns: 1fr;
    }

}


/* ---------------------------------------------------------
   29. RESPONSIVE - MOBILE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .notifications-container {
        padding: 16px;
    }

    .notifications-title {
        font-size: 23px;
    }

    .notifications-subtitle {
        font-size: 13px;
    }

    .notifications-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .notifications-stat-card {
        padding: 14px;
    }

    .notifications-stat-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .notifications-stat-value {
        font-size: 19px;
    }

    .notifications-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .notifications-toolbar-left,
    .notifications-toolbar-right {
        width: 100%;
    }

    .notifications-search {
        min-width: 0;
        flex: 1 1 100%;
        width: 100%;
    }

    .notifications-filter {
        flex: 1 1 180px;
    }

    .notifications-item {
        gap: 11px;
        padding: 14px;
    }

    .notifications-item-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
    }

    .notifications-item-header {
        flex-direction: column;
        gap: 4px;
    }

    .notifications-item-time {
        font-size: 10px;
    }

    .notifications-item-actions {
        align-self: flex-start;
    }

    .notification-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .notifications-preference-row {
        align-items: flex-start;
    }

}


/* ---------------------------------------------------------
   30. RESPONSIVE - SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 576px) {

    .notifications-container {
        padding: 12px;
    }

    .notifications-header {
        margin-bottom: 18px;
    }

    .notifications-title {
        font-size: 21px;
    }

    .notifications-header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .notifications-action {
        width: 100%;
    }

    .notifications-stats {
        grid-template-columns: 1fr;
    }

    .notifications-stat-card {
        min-height: 70px;
    }

    .notifications-toolbar-left,
    .notifications-toolbar-right {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .notifications-search,
    .notifications-filter {
        width: 100%;
        min-width: 0;
    }

    .notifications-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notifications-item-actions {
        grid-column: 2;
        width: 100%;
        justify-content: flex-start;
    }

    .notifications-item-action {
        width: 32px;
        height: 32px;
    }

    .notifications-detail-header {
        padding: 17px;
    }

    .notification-detail-body {
        padding: 17px;
    }

    .notification-detail-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .notification-detail-title {
        font-size: 16px;
    }

    .notifications-preference-row {
        flex-direction: column;
        gap: 12px;
    }

    .notifications-preference-row .notifications-toggle {
        align-self: flex-start;
    }

    .notifications-announcement-card {
        border-radius: var(--notifications-radius-md);
    }

    .notifications-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .notifications-pagination-list {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }

}


/* ---------------------------------------------------------
   31. VERY SMALL DEVICES
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .notifications-container {
        padding: 10px;
    }

    .notifications-header-actions {
        grid-template-columns: 1fr;
    }

    .notifications-item {
        padding: 12px;
    }

    .notifications-item-message {
        font-size: 12px;
    }

    .notifications-tab {
        padding-right: 11px;
        padding-left: 11px;
    }

}


/* ---------------------------------------------------------
   32. REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .notifications-page *,
    .notifications-page *::before,
    .notifications-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* ---------------------------------------------------------
   33. PRINT
   --------------------------------------------------------- */

@media print {

    .notifications-page {
        --notifications-text: #000000;
        --notifications-text-secondary: #333333;
        --notifications-text-muted: #555555;
        --notifications-surface: #ffffff;
        --notifications-border: #cccccc;
    }

    .notifications-header-actions,
    .notifications-toolbar,
    .notifications-tabs,
    .notifications-item-actions,
    .notifications-pagination,
    .notifications-center,
    .notifications-action {
        display: none !important;
    }

    .notifications-container {
        max-width: none;
        padding: 0;
    }

    .notifications-item,
    .notifications-list-container,
    .notification-detail-card,
    .notification-sidebar-card,
    .notifications-history,
    .notifications-announcement-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .notifications-item.is-unread {
        background: #ffffff;
    }

}