.notification-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
}

.notification-container.show {
    opacity: 1;
    top: 2rem;
    pointer-events: auto;
}

.notification-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification-message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

.notification-message.success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #22c55e;
}

/* Overlay */
.message-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* กล่องข้อความ */
.message-box {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 0.25s ease-out;
}

/* ปุ่ม */
.message-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.message-actions button {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* ปุ่มตกลง */
.message-actions .btn-ok {
    background: #0d6efd;
    color: #fff;
}

.message-actions .btn-ok:hover {
    background: #0b5ed7;
}

/* ปุ่มยกเลิก */
.message-actions .btn-cancel {
    background: #e9ecef;
    color: #333;
}

.message-actions .btn-cancel:hover {
    background: #d6d8db;
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}