#notificationModal .modal-dialog.notification-modal-dialog {
    max-width: 460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1.75rem !important;
    margin-bottom: 1.75rem !important;
    position: relative !important;
    width: auto !important;
    pointer-events: none;
}

#notificationModal .modal-dialog.notification-modal-dialog .modal-content {
    pointer-events: auto;
}

.notification-modal-content {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    animation: notificationPop 0.22s ease-out;
    background: #fff;
}

@keyframes notificationPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-modal-header {
    background: #fff;
    color: #0f172a;
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid #edf1f7;
}

.notification-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.notification-icon-wrapper {
    width: 38px;
    height: 38px;
    background: #eaf3ff;
    border: 1px solid #d7e8ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-wrapper i {
    font-size: 1rem;
    color: #1561ac;
}

.notification-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #172033;
    line-height: 1.2;
}

.notification-modal-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.2;
}

.notification-close-btn {
    background: #f6f8fb;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.notification-close-btn:hover {
    background: #eef4ff;
    border-color: #c9ddfb;
    color: #1561ac;
}

.notification-close-btn i {
    font-size: 0.86rem;
}

.notification-modal-body {
    padding: 18px 20px;
    background: #fff;
}

.notification-content {
    max-height: min(54vh, 420px);
    overflow: auto;
    padding-right: 2px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

.notification-content p {
    margin-bottom: 0.65rem;
}

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

.notification-content img,
.notification-content iframe,
.notification-content table {
    max-width: 100%;
}

.notification-modal-footer {
    padding: 14px 20px 18px;
    background: #fbfcfe;
    border-top: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-primary-button,
.notification-secondary-button {
    border: none;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.notification-primary-button {
    background: #1561ac;
    color: #fff;
    box-shadow: 0 8px 18px rgba(21, 97, 172, 0.22);
}

.notification-primary-button:hover {
    background: #0f559b;
    color: #fff;
    box-shadow: 0 10px 22px rgba(21, 97, 172, 0.28);
}

.notification-secondary-button {
    background: #fff;
    color: #475569;
    border: 1px solid #d9e2ef;
}

.notification-secondary-button:hover {
    background: #f6f8fb;
    border-color: #cbd5e1;
    color: #172033;
}

@media (max-width: 576px) {
    #notificationModal .modal-dialog.notification-modal-dialog {
        margin: 0.5rem auto !important;
        max-width: calc(100% - 1rem) !important;
        left: auto !important;
        right: auto !important;
    }
    
    #notificationModal.modal-dialog-centered .modal-dialog.notification-modal-dialog {
        margin: 0.5rem auto !important;
    }
    
    .notification-modal-header,
    .notification-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .notification-icon-wrapper {
        width: 34px;
        height: 34px;
    }
    
    .notification-modal-title {
        font-size: 1rem;
    }
    
    .notification-modal-footer {
        padding: 12px 16px 16px;
    }
    
    .notification-primary-button,
    .notification-secondary-button {
        flex: 1 1 calc(50% - 5px);
        padding-left: 10px;
        padding-right: 10px;
    }
}
