﻿/* wwwroot/css/notifications/notification-centre.css */

.notification-centre {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #111827;
}

html,
body {
    background-color: #f8fafc !important;
}

.hidden {
    display: none !important;
}

.notification-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-title-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.notification-title {
    margin: 0;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    color: #111827;
}

.notification-subtitle {
    margin: .25rem 0 0;
    font-size: .875rem;
    color: #6b7280;
}

.notification-unread-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .25rem .625rem;
    background: #ef4444;
    color: #fff;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.notification-outline-btn,
.notification-settings-btn,
.notification-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.125rem;
    border-radius: .5rem;
    padding: .4rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}

.notification-outline-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

    .notification-outline-btn:hover {
        background: #f9fafb;
        border-color: #9ca3af;
    }

.notification-settings-btn {
    width: 2.125rem;
    padding: 0;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
}

    .notification-settings-btn:hover {
        background: #f9fafb;
    }

.notification-primary-btn {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

    .notification-primary-btn:hover {
        background: #1d4ed8;
    }

    .notification-outline-btn svg,
    .notification-settings-btn svg,
    .notification-primary-btn svg {
        width: 1rem;
        height: 1rem;
    }

.notification-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.notification-filter {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 2.125rem;
    padding: .375rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}

    .notification-filter:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .notification-filter.active {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .375rem;
    border-radius: 999px;
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
}

.filter-count-unread {
    background: #ef4444;
}

.filter-count-mention {
    background: #a855f7;
}

.filter-count-done {
    background: #22c55e;
}

.notification-module-filter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 34px;
}


.notification-module-filter {
    width: auto !important;
    min-width: 144px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 36px 0 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #4b5563 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 32px !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

    .notification-module-filter:not(.is-active):hover {
        background-color: #f9fafb !important;
        border-color: #d1d5db !important;
    }

    .notification-module-filter:not(.is-active):focus,
    .notification-module-filter:not(.is-active):focus-visible {
        background-color: #ffffff !important;
        border-color: #d1d5db !important;
        color: #4b5563 !important;
        box-shadow: none !important;
    }

/*    .notification-module-filter.is-active,
    .notification-module-filter.is-active:hover,
    .notification-module-filter.is-active:focus,
    .notification-module-filter.is-active:focus-visible {
        background-color: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }*/


/*Dropdawn button colors */
.notification-module-filter {
    width: auto !important;
    min-width: 144px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 36px 0 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #4b5563 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 32px !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    /* No module selected: hover state */
    .notification-module-filter:not(.is-active):hover {
        background-color: #f9fafb !important;
        border-color: #d1d5db !important;
        color: #4b5563 !important;
    }

    /* No module selected: focus/open state */
    .notification-module-filter:not(.is-active):focus,
    .notification-module-filter:not(.is-active):focus-visible {
        background-color: #ffffff !important;
        border-color: #e5e7eb !important;
        color: #4b5563 !important;
        box-shadow: none !important;
    }

    /* Module selected */
  /*  .notification-module-filter.is-active,
    .notification-module-filter.is-active:hover,
    .notification-module-filter.is-active:focus,
    .notification-module-filter.is-active:focus-visible {
        background-color: #2563EB !important;
        border-color: #E0E0E0 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }*/

    .notification-module-filter.is-active,
    .notification-module-filter.is-active:hover,
    .notification-module-filter.is-active:focus,
    .notification-module-filter.is-active:focus-visible {
        background-color: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    /* Dropdown list items */
    .notification-module-filter option {
        background-color: #ffffff !important;
        color: #374151 !important;
    }

        /* Currently selected option inside the opened list */
        .notification-module-filter option:checked {
            background-color: #2563eb !important;
            color: #ffffff !important;
        }

        /* Disabled placeholder, when applicable */
        .notification-module-filter option:disabled {
            background-color: #ffffff !important;
            color: #9ca3af !important;
        }

.notification-module-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 14px;
    height: 14px;
    color: #9ca3af !important;
    pointer-events: none;
    transform: translateY(-50%);
}

/* Chevron becomes white only after module selection */
.notification-module-filter.is-active + .notification-module-chevron {
    color: #ffffff !important;
}



    .notification-module-filter:hover {
        background-color: #f9fafb !important;
        border-color: #d1d5db !important;
    }

.notification-module-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 14px;
    height: 14px;
    color: #9ca3af !important;
    pointer-events: none;
    transform: translateY(-50%);
}

/*.notification-module-filter.is-active + .notification-module-chevron {
    color: #ffffff !important;
}*/


.notification-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
}

.notification-card-header {
    padding: 24px 24px 8px;
    border: 0;
    border-bottom: 0;
    background: #ffffff;
    box-shadow: none;
}

.notification-count-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.notification-card-content {
    padding: 16px;
    border: 0;
    background: #ffffff;
    box-shadow: none;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: .75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background: #fff;
    transition: all .15s ease;
}

    .notification-item:hover {
        background: #f9fafb;
    }

    .notification-item.is-unread {
        border-color: #bfdbfe;
        background: rgba(239, 246, 255, .7);
    }

        .notification-item.is-unread:hover {
            background: #eff6ff;
        }

.notification-row-main {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.notification-status-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid;
    border-radius: 999px;
}

    .notification-status-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

.status-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #16a34a;
}

.status-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #d97706;
}

.status-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.status-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.notification-body {
    display: block;
    flex: 1;
    min-width: 0;
}

.notification-heading-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.notification-heading {
    font-size: .875rem;
    font-weight: 600;
    color: #111827;
}

.notification-item.is-read .notification-heading {
    color: #374151;
}

.notification-card > .notification-card-header {
    border-bottom: none !important;
    box-shadow: none !important;
}

.notification-mention-badge {
    display: inline-flex;
    align-items: center;
    border-radius: .25rem;
    padding: .125rem .375rem;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: .75rem;
    font-weight: 600;
}

.notification-unread-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: #3b82f6;
}

.notification-message {
    display: block;
    margin-top: .125rem;
    color: #6b7280;
    font-size: .875rem;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .375rem;
}

.notification-category,
.notification-destination-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
}

    .notification-category svg,
    .notification-destination-link svg {
        width: .75rem;
        height: .75rem;
    }

.status-text-success {
    color: #16a34a;
}

.status-text-warning {
    color: #d97706;
}

.status-text-error {
    color: #dc2626;
}

.status-text-info {
    color: #2563eb;
}

.notification-time {
    color: #9ca3af;
    font-size: .75rem;
}

.notification-destination-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

    .notification-destination-link:hover {
        color: #1e40af;
        text-decoration: underline;
    }

.notification-done-btn,
.notification-done-indicator {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 2.25rem;
    height: 2.25rem;
    margin: .875rem .875rem .875rem 0;
    border-radius: .5rem;
}

.notification-done-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    transition: all .15s ease;
}

    .notification-done-btn:hover {
        border-color: #86efac;
        background: #f0fdf4;
        color: #16a34a;
    }

.notification-done-indicator {
    color: #16a34a;
}

    .notification-done-btn svg,
    .notification-done-indicator svg {
        width: 1.25rem;
        height: 1.25rem;
    }

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    color: #9ca3af;
}

    .notification-empty svg {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: .75rem;
        opacity: .35;
    }

    .notification-empty p {
        margin: 0;
        font-size: .875rem;
    }

.notification-modal {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, .45);
}

    .notification-modal.open {
        display: flex;
    }

.notification-modal-panel {
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.notification-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
}

.notification-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.notification-modal-description {
    margin: .25rem 0 0;
    color: #6b7280;
    font-size: .875rem;
}

.notification-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .375rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

    .notification-modal-close:hover {
        background: #f3f4f6;
    }

.notification-modal-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0 1.5rem 1.5rem;
}

.settings-block {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
}

.settings-section-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border: 0;
    background: #f9fafb;
    color: #374151;
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .settings-section-toggle:hover {
        background: #f3f4f6;
    }

    .settings-section-toggle svg {
        width: 1rem;
        height: 1rem;
    }

.settings-section-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .75rem 1rem;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-row-flat {
    padding: 0;
}

.settings-label {
    display: block;
    margin: 0;
    color: #374151;
    font-size: .875rem;
    font-weight: 500;
}

.settings-description {
    margin: .125rem 0 0;
    color: #6b7280;
    font-size: .75rem;
}

.settings-description-spacing {
    margin-bottom: .5rem;
}

.settings-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 1.375rem;
}

    .settings-switch input {
        width: 0;
        height: 0;
        opacity: 0;
    }

.settings-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    transition: .2s;
}

    .settings-switch-slider::before {
        position: absolute;
        bottom: .1875rem;
        left: .1875rem;
        width: 1rem;
        height: 1rem;
        border-radius: 999px;
        background: #fff;
        content: "";
        transition: .2s;
    }

.settings-switch input:checked + .settings-switch-slider {
    background: #2563eb;
}

    .settings-switch input:checked + .settings-switch-slider::before {
        transform: translateX(1.125rem);
    }

.settings-field {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.settings-select,
.settings-time-input {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    background: #fff;
    padding: .5rem .75rem;
    color: #374151;
    font-size: .875rem;
}

.settings-days {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.settings-day {
    width: 2.75rem;
    height: 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #fff;
    color: #6b7280;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
}

    .settings-day.active {
        border-color: #2563eb;
        background: #2563eb;
        color: #fff;
    }

.settings-time-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: .75rem;
}

.settings-time-label {
    display: block;
    margin-bottom: .25rem;
    color: #6b7280;
    font-size: .75rem;
}

.settings-time-separator {
    padding-bottom: .625rem;
    color: #9ca3af;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding-top: .5rem;
}

@media (max-width: 768px) {
    .notification-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-header-actions {
        width: 100%;
    }

    .notification-title {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .notification-row-main {
        gap: .75rem;
        padding: .875rem;
    }

    .notification-done-btn,
    .notification-done-indicator {
        margin: .75rem .75rem .75rem 0;
    }

    .notification-status-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}




.notification-centre {
    min-height: 100vh;
    background-color: #f8fafc;
}

.notification-card,
.notification-card-header,
.notification-card-content {
    background-color: #ffffff;
}

.notification-centre > .notification-page-header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.notification-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.notification-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-title {
    margin: 0;
    color: #111827;
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
}

.notification-subtitle {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 20px;
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
