﻿/* wwwroot/css/notifications/notification-centre.css */

.notification-centre {
    max-width: 100%;
    padding: 24px;
    color: #111827;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.notification-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.notification-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-title {
    font-size: 30px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.notification-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notification-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .notification-btn:hover {
        background: #f9fafb;
    }

.notification-icon-btn {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 4px 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .filter-btn:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .filter-btn.active {
        background: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
    }

.filter-count {
    margin-left: 6px;
    border-radius: 9999px;
    padding: 2px 6px;
    font-size: 12px;
    color: #ffffff;
    background: #ef4444;
}

    .filter-count.mention {
        background: #a855f7;
    }

.notification-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.notification-card-header {
    padding: 16px 24px 8px;
}

.notification-count-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .notification-item.unread {
        background: rgba(239, 246, 255, 0.7);
    }

    .notification-item.read:hover {
        background: #f9fafb;
    }

.notification-type-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
}

    .notification-type-icon.success {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #16a34a;
    }

    .notification-type-icon.warning {
        background: #fffbeb;
        border-color: #fde68a;
        color: #d97706;
    }

    .notification-type-icon.error {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }

    .notification-type-icon.info {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #2563eb;
    }

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.notification-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-heading-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.notification-item.unread .notification-heading-title {
    color: #111827;
}

.notification-item.read .notification-heading-title {
    color: #374151;
}

.notification-message {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.notification-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.notification-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.notification-time {
    font-size: 12px;
    color: #9ca3af;
}

.notification-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

    .notification-link:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

.mention-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 2px 6px;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 12px;
    font-weight: 700;
}

.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #3b82f6;
}

.dismiss-btn {
    flex-shrink: 0;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

    .dismiss-btn:hover {
        background: #dcfce7;
        color: #16a34a;
    }

.empty-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    color: #9ca3af;
}

    .empty-notifications p {
        margin-top: 12px;
        font-size: 14px;
    }

.hidden {
    display: none !important;
}

/* Settings modal */

.notification-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
}

    .notification-modal.open {
        display: flex;
    }

.notification-modal-panel {
    width: 100%;
    max-width: 448px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.notification-modal-header {
    padding: 24px 24px 8px;
}

.notification-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.notification-modal-description {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.notification-modal-body {
    padding: 12px 24px 24px;
}

.settings-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.settings-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
}

    .settings-section-toggle:hover {
        background: #f3f4f6;
    }

.settings-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.settings-section-body {
    padding: 12px 16px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

    .setting-row:last-child {
        margin-bottom: 0;
    }

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.setting-description {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.switch {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .switch input {
        display: none;
    }

.switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .switch-slider::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 9999px;
        background: #ffffff;
        transition: transform 0.2s ease;
    }

.switch input:checked + .switch-slider {
    background: #2563eb;
}

    .switch input:checked + .switch-slider::after {
        transform: translateX(20px);
    }

.email-digest-select,
.time-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

    .email-digest-select:focus,
    .time-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

.days-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.day-toggle {
    width: 44px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .day-toggle.active {
        background: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
    }

.time-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-field {
    flex: 1;
}

.time-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.time-separator {
    color: #9ca3af;
    margin-top: 20px;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

.primary-btn {
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .primary-btn:hover {
        background: #1d4ed8;
    }

@media (max-width: 640px) {
    .notification-page-header {
        flex-direction: column;
    }

    .notification-title {
        font-size: 24px;
    }

    .notification-actions {
        flex-wrap: wrap;
    }
}



.notification-success {
    color: #16a34a;
}

.notification-warning {
    color: #d97706;
}

.notification-error {
    color: #dc2626;
}

.notification-info {
    color: #2563eb;
}

.settings-field {
    margin-bottom: 16px;
}

    .settings-field:last-child {
        margin-bottom: 0;
    }

.lucide {
    width: 18px;
    height: 18px;
}
