.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.notification {
    position: relative;
    padding: 12px 36px 12px 16px;
    border-radius: 8px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    width: 350px; /* width cố định */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    opacity: 0.95;
    transition: transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    white-space: normal; /* cho phép xuống dòng */
    word-break: break-word;
}

.notification.success {
    background-color: #4caf50;
}
.notification.error {
    background-color: #f44336;
}
.notification.info {
    background-color: #2196f3;
}
.notification.warning {
    background-color: #ff9800;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.notification.hide {
    opacity: 0;
    transform: translateX(100%);
}

.notification .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification .message {
    display: block;
    width: 100%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}
