.notifications-view-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notifications-form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
}

.notifications-form-section h2 {
    color: #0f172a;
    font-size: 22px;
    margin: 0 0 16px;
}

.notification-monthly-report-chart {
    height: 300px;
    width: 100%;
}

.notification-filter-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.notification-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-filter-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7e1ef;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    line-height: 1;
    min-height: 34px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.notification-filter-item:hover {
    background: #edf2ff;
    border-color: #c7d2fe;
    color: #1e3a8a;
}

.notification-filter-item.selected {
    background: #2647c8;
    border-color: #2647c8;
    color: #ffffff;
}

.notification-filter-header .button-row {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.notification-filter-header .button-row .simple-button,
.notification-filter-header .button-row .notification-delete-all-button {
    flex-shrink: 0;
}

.notification-filter-header .button-row .simple-button {
    align-items: center;
    background: #2647c8;
    border: 1px solid #2647c8;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    transition: background-color 0.2s ease;
}

.notification-filter-header .button-row .simple-button:hover {
    background: #1f3cae;
}

.notification-filter-header .button-row .notification-delete-all-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dc2626;
    border-radius: 999px;
    color: #b91c1c;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notification-filter-header .button-row .notification-delete-all-button:hover {
    background: #fee2e2;
    color: #991b1b;
}

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

.notification-list-item {
    --notification-accent: #2563eb;
    --notification-soft-bg: #f4f8ff;
    --notification-border: #bfdbfe;
    --notification-chip-bg: #dbeafe;
    --notification-chip-color: #1e40af;
    --notification-title-color: #0f172a;
    background: var(--notification-soft-bg);
    border: 1px solid var(--notification-border);
    border-left: 4px solid var(--notification-accent);
    border-radius: 12px;
    overflow: hidden;
    padding: 14px 14px 12px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.notification-list-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.notification-list-item.success {
    --notification-accent: #16a34a;
    --notification-soft-bg: #f0fdf4;
    --notification-border: #bbf7d0;
    --notification-chip-bg: #dcfce7;
    --notification-chip-color: #166534;
    --notification-title-color: #14532d;
}

.notification-list-item.error {
    --notification-accent: #dc2626;
    --notification-soft-bg: #fef2f2;
    --notification-border: #fecaca;
    --notification-chip-bg: #fee2e2;
    --notification-chip-color: #991b1b;
    --notification-title-color: #7f1d1d;
}

.notification-list-item.info {
    --notification-accent: #2563eb;
    --notification-soft-bg: #f4f8ff;
    --notification-border: #bfdbfe;
    --notification-chip-bg: #dbeafe;
    --notification-chip-color: #1e40af;
    --notification-title-color: #1e3a8a;
}

.notification-list-item.warning {
    --notification-accent: #d97706;
    --notification-soft-bg: #fffbeb;
    --notification-border: #fde68a;
    --notification-chip-bg: #fef3c7;
    --notification-chip-color: #92400e;
    --notification-title-color: #78350f;
}

.notification-list-item.alert {
    --notification-accent: #ea580c;
    --notification-soft-bg: #fff7ed;
    --notification-border: #fdba74;
    --notification-chip-bg: #ffedd5;
    --notification-chip-color: #9a3412;
    --notification-title-color: #7c2d12;
}

.notification-list-item.non-read {
    box-shadow: inset 0 0 0 1px var(--notification-border);
}

.notification-list-item.read {
    background: #ffffff;
    border-color: #dbe4ee;
    border-left-color: var(--notification-accent);
    box-shadow: none;
}

.notification-list-item.non-read .notification-list-item-label.strong {
    color: var(--notification-title-color);
}

.notification-list-item-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.notification-list-item-label {
    color: #334155;
    margin: 0;
}

.notification-list-item-label.strong {
    color: #0f172a;
    font-weight: 700;
}

.notification-list-item-date {
    color: #64748b;
    font-size: 12px;
}

.notification-list-item-title-wrapper {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.notification-list-item-type-chip {
    background: var(--notification-chip-bg);
    border-radius: 999px;
    color: var(--notification-chip-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.notification-list-item-link {
    align-items: center;
    color: var(--notification-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    margin-top: 10px;
    text-decoration: none;
}

.notification-card-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.notification-card-action {
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-height: 30px;
    padding: 7px 10px;
    transition: all 0.2s ease;
}

.notification-card-action--read {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.notification-card-action--read:hover {
    background: #bfdbfe;
}

.notification-card-action--unread {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

.notification-card-action--unread:hover {
    background: #cbd5e1;
}

.notification-card-action--delete {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.notification-card-action--delete:hover {
    background: #fecaca;
}

.notification-card-read-badge {
    background: #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-height: 30px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
}

.model-select-empty-state {
    align-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
    min-height: 180px;
    padding: 24px;
}

.model-select-empty-state-image {
    height: 56px;
    opacity: 0.85;
    width: 56px;
}

.model-select-empty-state-title {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.notification-details-page {
    --details-accent: #2563eb;
    --details-accent-strong: #1d4ed8;
    --details-soft-bg: #eff6ff;
    --details-soft-border: #bfdbfe;
    --details-chip-bg: #dbeafe;
    --details-chip-color: #1e40af;
    --details-title-color: #0f172a;
    background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d9e5f4;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 20px;
}

.notification-details-page.notification-theme-success {
    --details-accent: #16a34a;
    --details-accent-strong: #15803d;
    --details-soft-bg: #f0fdf4;
    --details-soft-border: #bbf7d0;
    --details-chip-bg: #dcfce7;
    --details-chip-color: #166534;
}

.notification-details-page.notification-theme-error {
    --details-accent: #dc2626;
    --details-accent-strong: #b91c1c;
    --details-soft-bg: #fef2f2;
    --details-soft-border: #fecaca;
    --details-chip-bg: #fee2e2;
    --details-chip-color: #991b1b;
}

.notification-details-page.notification-theme-warning {
    --details-accent: #d97706;
    --details-accent-strong: #b45309;
    --details-soft-bg: #fffbeb;
    --details-soft-border: #fde68a;
    --details-chip-bg: #fef3c7;
    --details-chip-color: #92400e;
}

.notification-details-page.notification-theme-alert {
    --details-accent: #ea580c;
    --details-accent-strong: #c2410c;
    --details-soft-bg: #fff7ed;
    --details-soft-border: #fed7aa;
    --details-chip-bg: #ffedd5;
    --details-chip-color: #9a3412;
}

.notification-details-hero {
    background: linear-gradient(135deg, var(--details-soft-bg) 0%, #ffffff 75%);
    border: 1px solid var(--details-soft-border);
    border-radius: 16px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.notification-details-back-link {
    align-items: center;
    color: #334155;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    text-decoration: none;
    width: fit-content;
}

.notification-details-back-link:hover {
    color: var(--details-accent-strong);
}

.notification-details-hero-main {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.notification-details-icon {
    align-items: center;
    background: var(--details-accent);
    border-radius: 14px;
    color: #ffffff;
    display: inline-flex;
    font-size: 24px;
    height: 56px;
    justify-content: center;
    margin-top: 2px;
    min-width: 56px;
}

.notification-details-kicker {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.notification-details-title {
    color: var(--details-title-color);
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
}

.notification-details-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.notification-details-chip {
    background: var(--details-chip-bg);
    border-radius: 999px;
    color: var(--details-chip-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 10px;
}

.notification-details-chip--status {
    background: #e2e8f0;
    color: #334155;
}

.notification-details-chip--status.is-unread {
    background: #fef9c3;
    color: #854d0e;
}

.notification-details-content-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    margin-top: 12px;
}

.notification-details-panel {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    padding: 18px;
}

.notification-details-panel h3 {
    color: #0f172a;
    font-size: 18px;
    margin: 0 0 12px;
}

.notification-details-message {
    color: #1e293b;
    font-size: 20px;
    line-height: 1.45;
    margin: 0;
    white-space: pre-wrap;
}

.notification-details-meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.notification-details-meta-item {
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 2px;
    padding-top: 10px;
}

.notification-details-meta-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.notification-details-meta-item dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notification-details-meta-item dd {
    color: #0f172a;
    font-size: 15px;
    margin: 0;
}

.notification-details-link-box {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #bfd2ea;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 12px;
    padding: 16px;
}

.notification-details-link-box-label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.notification-details-link-box-text {
    color: #1e293b;
    margin: 4px 0 0;
}

.notification-details-link-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c4d8ef;
    border-radius: 10px;
    color: #0f172a;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.notification-details-link-button:hover {
    border-color: var(--details-accent);
    color: var(--details-accent-strong);
}

.notification-details-actionbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.notification-details-action {
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-height: 40px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.notification-details-action--primary {
    background: var(--details-accent);
    color: #ffffff;
}

.notification-details-action--primary:hover {
    background: var(--details-accent-strong);
}

.notification-details-action--neutral {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

.notification-details-action--neutral:hover {
    background: #cbd5e1;
}

.notification-details-action--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.notification-details-action--danger:hover {
    background: #ffe4e6;
}

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

@media (max-width: 980px) {
    .notification-filter-header {
        flex-direction: column;
    }

    .notification-filter-header .button-row {
        width: 100%;
    }

    .notification-filter-header .button-row .simple-button,
    .notification-filter-header .button-row .notification-delete-all-button {
        flex: 1;
    }

    .notification-details-title {
        font-size: 24px;
    }

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

    .notification-details-link-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-details-link-button {
        width: 100%;
    }

    .notification-details-actionbar {
        justify-content: stretch;
    }

    .notification-details-action {
        flex: 1;
    }
}
