/* Modal thông báo — kiểu hộp trắng, viền xám, shadow nhẹ */

.global-notification-modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.global-notification-modal.show {
    opacity: 1;
    visibility: visible;
}

.global-notification-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.global-notification-modal.show .global-notification-overlay {
    opacity: 1;
}

.global-notification-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.global-notification-modal.show .global-notification-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.global-notification-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Header: icon chuông + Thông báo + nút đóng */
.global-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.global-notification-header-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.global-notification-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.global-notification-header-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.global-notification-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.global-notification-close:hover {
    background: #f1f3f5;
    color: #212529;
}

/* Nội dung */
.global-notification-body {
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    text-align: left;
}

.global-notification-prose {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #212529;
    text-align: left;
}

.global-notification-prose p {
    margin: 0 0 0.5rem 0;
}

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

.global-notification-prose strong {
    color: #212529;
    font-weight: 700;
}

.global-notification-prose ul,
.global-notification-prose ol {
    margin: 0 0 0.5rem 0;
    padding-left: 1.25rem;
}

.global-notification-prose li {
    margin-bottom: 0.2rem;
}

/* Footer: Đóng trong 1h (viền xám) + Đã hiểu (xanh) */
.global-notification-footer {
    padding: 1rem 1.25rem;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.global-notification-footer .btn {
    min-height: 38px;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.global-notification-footer .btn i {
    font-size: 1rem;
}

.global-notification-footer .btn-outline-secondary {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
}

.global-notification-footer .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.global-notification-footer .btn-primary {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
}

.global-notification-footer .btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}
